/*the main background color, text color, and font for the entire page */
body {
    background-color: #f4f7f6;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0; 
}

/*thick white frame w/ a subtle shadow around the main content */
.page-border {
    border: 10pt solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 20px; 
}

/*layout and spacing of the top nav bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px; 
    background: #ffffff;
}

/*this restricts the height of the logo image so it fits neatly in the header */
.site-logo {
    height: 100px;
    width: auto;
    display: block;
}

/*manage the nav links, setting gap spacing and removing underlines */
nav ul {
    list-style: none;
    display: flex;
    gap: 40px; 
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: 0.3s;
    font-size: 1.1rem;
}

/*turns the nav links blue when hovered or when on the active page */
nav a:hover,
.active {
    color: #0055ff;
}

/*creates a full-width container for the looping background video at the top of the homepage */
.hero-section {
    position: relative;
    height: 70vh;
    width: 100%; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/*pins the vid to the background & ensures it covers the wholearea */
#hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/*adds a semi-transparent blue tint over the video so the white text is easy to read */
.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 30, 80, 0.4);
    padding: 40px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*styles the main heading and subtitle */
.hero-overlay h1 {
    font-size: 2.4rem; 
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/*buttons with blue backgrounds, white text, and rounded edges */
.btn {
    display: inline-block;
    background: #0055ff;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
    border: 2px solid #0055ff;
}

.btn:hover {
    background: #0044cc;
}

/*specific buttons in the hero area to keep it centered and bold */
.hero-overlay .btn {
    align-self: center;
    font-weight: bold;
    padding: 15px 40px;
}

/*side-by side layout of the mission text and img */
.intro-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 40px;
    background: #ffffff;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 2.5rem;
    color: #0055ff;
    margin-bottom: 5px;
}

.intro-text h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.intro-image {
    flex: 1;
}

/*styling for the learn more btn */
.btn-outline {
    display: inline-block;
    border: 2px solid #0055ff;
    color: #0055ff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
    border-radius: 50px;
}

.btn-outline:hover {
    background: #0055ff;
    color: #ffffff;
}

/*3-column grid for the quick feat. cards on the homepage */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
}

/*white background, border, and hover lift effect to the  cards */
.grid-card {
    display: block; /* ensures the link acts like a full block container */
    text-decoration: none; /* removes the default blue underline from links */
    color: inherit; /* keeps your custom text colors instead of turning them link-blue */
    border: 1px solid #e0e6ed;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #ffffff;
    transition: transform 0.3s;
}

.grid-card:hover {
    transform: translateY(-5px);
    border-color: #0055ff;
}

/* greyish containing emojis inside the grid cards */
.icon-circle {
    width: 60px;
    height: 60px;
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px auto;
}

/*asymmetrical layout with one large image left, three stacked right, and text */
.animal-showcase {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr; 
    gap: 20px;
    padding: 60px 40px;
    background: #f4f7f6;
}

/*middle column containing the 3 stacked smaller images */
.sub-animals {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%; 
}

/* spaces the text column in the animal showcase */
.animal-text {
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.animal-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.animal-text p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.text-link {
    color: #0055ff;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
}

/*images fill their containers cleanly without stretching or distorting */
.responsive-img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

/*thick blue line to the left edge of the animal images */
.accent-border {
    border-left: 6px solid #0055ff;
    border-radius: 0 8px 8px 0; 
}

/*drop shadow beneath images */
.shadow-img {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.main-animal {
    height: 100%; 
}

/* minimum height for the large vertical image on the left */
.tall-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    min-height: 360px;
}

/*tells the 3 smaller right-side images to divide the available height evenly */
.short-img {
    flex: 1; 
    width: 100%;
    min-height: 0; 
    object-fit: cover; 
}

/*4-column layout for the bottom footer */
.site-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr;
    gap: 30px;
    padding: 60px 40px;
    background: #ffffff;
    border-top: 1px solid #e0e6ed;
    font-size: 0.9rem;
}

/*sizes the Aquari logo inside the footer */
.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

/*puts the columns of text links inside the footer */
.link-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 40px;
}

.link-col a {
    color: #0055ff;
    text-decoration: none;
    font-weight: bold;
}

/*newsletter email input box and the subscribe button */
.footer-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.footer-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* spacing of the social media emoji icons */
.socials p {
    margin-bottom: 10px;
}

.social-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    cursor: pointer;
}

/*image header for the exploration zone */
.zone-hero {
    position: relative;
    height: 60vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
}

/* introductory paragraph on the zone pages */
.zone-intro {
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.zone-intro h2 {
    font-size: 2.5rem;
    color: #0055ff;
}

/*3-column grid layout for the animal profile cards */
.animal-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 60px;
}

/*white background n rounded framing for each animal card, plus the cyan accent line */
.animal-card {
    background: #ffffff;
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 5px solid #00c3ff; /* The cyan accent line */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/*shadow and zoom in when hovered over */
.animal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 85, 255, 0.2);
}

/*crops the images inside the cards so they are exactly the same height */
.card-img-wrapper {
    width: 100%;
    height: 250px; 
    overflow: hidden;
    position: relative;
    background: #000; 
}

/*smooth transition speed for the image hover effect */
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/*this darkens and slightly scales the image inside the card when hovered */
.animal-card:hover .card-img-wrapper img {
    transform: scale(1.1); 
    opacity: 0.7; 
}

/*pacing of text inside the animal cards */
.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.animal-category {
    font-size: 0.8rem;
    color: #0055ff;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* animal names to match the blue text from the reference image */
.card-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    color: #0055ff; 
}

.card-content p {
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

/*slideshow so the images stack properly */
.slideshow-wrapper {
    position: relative;
}

.albert-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.albert-slide.active {
    opacity: 1;
}

/*should push the slideshow button to the bottom of the card and spaces it out */
.slide-controls {
    margin-top: auto; 
    padding-top: 15px;
}

/*view more photos button with an outline look */
.slide-controls button {
    background: none;
    border: 2px solid #0055ff;
    color: #0055ff;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.slide-controls button:hover {
    background: #0055ff;
    color: #ffffff;
}

/* background & padding for the user reviews section */
.testimonials-section {
    background-color: #f4f7f6;
    padding: 60px 40px;
    text-align: center;
    border-radius: 15px;
    margin: 40px 60px;
}

.testimonials-section h2 {
    color: #0055ff;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.test-subtitle {
    color: #555;
    margin-bottom: 40px;
}

/*puts cards side-by-side */
.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/*styles the individual review cards with a thick blue top border */
.review-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    max-width: 400px;
    text-align: left;
    border-top: 4px solid #0055ff;
}

/*formats the star rating & italicized text in reviews */
.review-card .stars {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-card h4 {
    color: #2c3e50;
    margin: 0;
}