html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    font-family: "Inter", sans-serif;
    color: #333;
    background-color: #F0FFF0;
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-size: 80px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.content-wrapper {
    flex: 1;
}

body.fade-out {
  opacity: 1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 2rem;
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: auto;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    animation: logo-bounce 0.6s ease-in-out;
}

@keyframes logo-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-12px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-6px); }
}

.logo-container .logo {
    margin: 0;
    padding: 35px;
    font-size: 56px;
    line-height: 1;
}

.logo-container .logo-text {
    font-size: 28px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 15px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    padding-top: calc(5rem + 80px);
    margin-top: -80px;
    background: linear-gradient(to right, #4CAF50, #81C784);
    color: white;
}

.hero button {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border: none;
    background-color: white;
    color: #4CAF50;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.content-section {
    padding: 3rem 2rem;
    background-color: white;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.caption-image {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.caption-image img {
    display: block;
    width: 100%;
    height: auto;
}

.caption-image .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 20px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.wide-image {
    width: 100%;
    text-align: center;
}

.wide-image img,
.full-width-image img {
    width: 100%;
    border-radius: 8px;
}

footer {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    text-align: center;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    margin-top: auto;
}

.contact-btn {
    display: inline-block;
    padding: 0px 24px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.h3-text {
  font-size: 1.17em;
}

.new-tab-link {
  color: #014421;
  text-decoration: none;
  display: inline-block;
  background-image: linear-gradient(90deg, #5ab05c, #5ab05c),
                    linear-gradient(90deg, #014421, #014421);
  background-size: 15px 2px, 100% 2px;
  background-repeat: no-repeat;
  background-position-x: -15px, 0;
  background-position-y: 100%;
  transition: background-position-x 0.5s;
}

.new-tab-link-white-gap {
    background-image: linear-gradient(90deg, white, white),
                    linear-gradient(90deg, #014421, #014421);
}

.new-tab-link:hover {
  background-position-x: calc(100% + 15px), 0;
}

/* Desktop nav animations: current page + non-current pages */
@media (min-width: 769px) {
    .nav-links {
        list-style: none;
        display: flex;
        gap: 2.5rem;
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        position: relative;
        display: inline-block;
        text-decoration: none;
        color: white;
        font-weight: bold;
        font-size: 15px;
        padding: 4px 8px;
    }

    .nav-links #mobile {
        display: none;
    }

    /* Non-current pages: corner-bracket hover animation */
    .nav-links a:not(.current)::before,
    .nav-links a:not(.current)::after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border: 2px solid transparent;
        transition: all 0.35s ease;
        pointer-events: none;
        box-sizing: border-box;
    }

    .nav-links a:not(.current)::before {
        top: -2px;
        left: 0;
    }

    .nav-links a:not(.current)::after {
        bottom: -2px;
        right: 0;
    }

    .nav-links a:not(.current):hover::before {
        width: 65%;
        height: calc(100% + 4px);
        border-top-color: white;
        border-left-color: white;
    }

    .nav-links a:not(.current):hover::after {
        width: 65%;
        height: calc(100% + 4px);
        border-bottom-color: white;
        border-right-color: white;
    }

    /* Current page: persistent 1px underline, animates to 3px from left on hover */
    .nav-links a.current::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background-color: white;
    }

    .nav-links a.current::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 3px;
        background-color: white;
        transition: width 0.3s ease;
    }

    .nav-links a.current:hover::after {
        width: 100%;
    }

    .nav-links a.current::before,
    .nav-links a.current::after {
        border: none;
    }
}

/* Responsive navbar scaling for laptop/tablet sizes */
@media (min-width: 769px) and (max-width: 1200px) {
    .navbar {
        padding: 0rem 1.5rem;
    }

    .logo-container .logo {
        padding: 25px;
        font-size: 16px;
    }

    .logo-link {
        width: 75px;
        height: auto;
    }

    .logo-container img,
    .logo-static,
    .logo-hover-video {
        width: 75px;
    }

    .nav-links {
        gap: 1.8rem;
    }

    .nav-links a {
        font-size: 14px;
        padding: 4px 6px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-container .logo {
        padding: 10px;
        font-size: 16px;
    }

    .nav-links a {
        font-size: 0.9rem;
        position: relative;
    }

    .page-container {
        padding-top: 140px;
    }
}