body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f8f8f8;
}
header {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-style: italic;
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}
header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin: 0;
    font-size: 2.5rem;
}
nav {
    font-family: Poppins, sans-serif;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: skyblue;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100px;
    position: relative;
    text-align: center;
  }
nav a {
    color: black;
    text-decoration: none;
    padding: 1rem;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(117, 173, 195);
  z-index: -1; /* Keeps the pseudo-element behind the text */
  opacity: 0;
  transform: scaleY(0); /* Collapsed state */
  transform-origin: top;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 1200px;

}

nav a:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

nav .logo img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 170px; /* Adjust size as needed */
  height: auto;
  border-radius: 50%;
  animation: fadeInDown .6s ease-in-out;
  /* animation-fill-mode: forwards; */
  box-shadow: none;
  transition: none;
  background-color: #fff;
}
.logo img:hover {
  box-shadow: none;
}
.logomobile img {
    display: none;
    width: 110px; /* Adjust size as needed */
    height: auto;
    border-radius: 50%;
    position: absolute;
    animation: fadeInDown 1.4s ease-in-out;
    top: -5.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
}
.mobile-show {
    display: none;
}
.hero {
    background-image: url('./images/lessons.jpeg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}
.hero h2 {
    font-size: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInDownh2 1s ease-in-out;
    animation-fill-mode: forwards;
    margin-bottom: 0.5;
}
.hero h3 {
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInDownh2 1.1s ease-in-out;
    animation-fill-mode: forwards;
    margin-top: 0.5rem;
}
.hero2 {
    background-image: url('./images/keys-2.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    position: relative;
}
.hero3 {
    background-image: url('./images/post-gig.jpeg');
    background-size: cover;
    background-position: top center -200px;
    height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    position: relative;
}

.about-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}

.about-img-container {
    flex: 0 0 33%;
}

.about-img-container img {
    width: 90%;
    border-radius: 2%;
}

.about-text-container {
    flex: 0 0 66%;
}
.columns {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 1rem;
}

.columns section {
    flex: 1;
}

.square-image {
    width: 250px; /* Adjust the size as needed */
    height: 250px;
    object-fit: cover;
    border-radius: 2%;
}
@keyframes fadeInDownh2 {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

section {
    padding: 2rem;
    text-align: center;
}
section {
    background-color: #fff;
    margin-bottom: 1rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section img {
  position: relative;
  display: block;
  left: 50%;
  transform: translateX(-50%);
  top: 10%;
  width: 150px; /* Adjust size as needed */
  height: auto;
  border-radius: 15%;
  animation: fadeInDown .8s ease-in-out;
  box-shadow: none;
  transition: none;
}
section:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
footer {
    background-color: skyblue;
    color: black;
    text-align: center;
    padding: 1rem 0;
}
footer a {
    margin: 0 10px;
    color: black;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #007BFF;
}

#contact-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

#contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.name-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.name-group .form-group {
    flex: 1;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, .75fr);
    align-items: start;
    gap: 0.5rem 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 5rem;
}
.checkbox-item {
    margin-right: 1rem;
    display: flex;
    text-align: left;
    padding: 0.25rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

#contact-form button {
    background: #444;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#contact-form button:hover {
    background: #333;
}

/* Default desktop styles (already included above) */

/* Tablet styles */
@media (max-width: 950px) {
    .mobile-hide {
        display: none;
    }
    .mobile-show {
        display: block;
    }
    nav a {
        font-size: 1rem; /* Smaller font size for links */
    }
    .logo img {
        width: 80px; /* Adjust size as needed */
    }
    .hero h2 {
        font-size: 2.25rem;
    }
    .hero {
        height: 50vh;
    }
    .hero2 {
        height: 50vh;
    }
    .hero3 {
        height: 50vh;
    }
    .about-container {
        flex-direction: column;
    }
    .about-image-container img {
        width: auto;
        border-radius: 2%;
        max-width: 100px;
        object-fit: cover;
        object-position: center top;
        height: auto;
    }
    .about-image-container,
    .about-text-container {
        width: 100%;
        flex: 0 0 100%;
        overflow: hidden;
    }
}




/* Mobile styles */
@media (max-width: 650px) {

    nav a {
        font-size: 1rem; /* Smaller font size for links */
    } 
    nav img {
        position:sticky;
    }
    .logo {
        display: none;
        position: relative; /* Logo can stack naturally */
        padding: 0.5rem 2rem; /* Add padding */
        margin-bottom: 1rem; /* Add spacing below the logo */
        margin-top: 1rem;
        border-radius: 50%;
        align-items: center;
    }

    .logomobile {
        display:flex;
        border-radius: 50%;
        position: relative;
    }
    .logomobile img {
        display: flex;
        width: 110px; /* Adjust size as needed */
        height: auto;
        border-radius: 50%;
        position: absolute;
        animation: fadeInDown 1.4s ease-in-out;
        top: -5.75rem;
        left: 50%;
        transform: translateX(-50%);
    }
    .hero h2 {
        font-size: 2.25rem;
    }
    .hero3 {
        background-image: url('./images/post-gig.jpeg');
        background-size: cover;
        background-position: center;
        height: 50vh;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
        position: relative;
    }
    iframe {
        width: 100%;
        align-items: center;
    }
    .navbar-nav .nav-link:hover {
        color: #007bff; /* Example: blue on hover */
    }
    .about-container {
        flex-direction: column;
    }
    
    .about-image-container,
    .about-text-container {
        width: 100%;
        flex: 0 0 100%;
    }
    #contact-form {
        padding: 1rem;
    }
    #contact-form {
        padding: 1rem;
    }
    .name-group {
        flex-direction: column;
    }
    .checkbox-group {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        justify-content: center; /* Center the grid */
        gap: 0.5rem 0.5rem;
        margin-bottom: 0.5rem;
        margin-left: 1.5rem; /* Remove left margin */
    }
}