/* 
 * Zoo / Aquarium Website - Main Stylesheet
 * Fonts: Outfit (Heading), Inter (Body)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #2E7D32;
    /* Forest Green */
    --secondary-color: #0277BD;
    /* Deep Ocean Blue */
    --tertiary-color: #F9A825;
    /* Sunny Yellow */

    /* Light Theme Base */
    --bg-body: #F8F9FA;
    --bg-card: #FFFFFF;
    --text-main: #212529;
    --text-muted: #495057;
    /* Darker for better contrast in light mode */
    --border-color: #DEE2E6;
    --nav-bg: #FFFFFF;
    --footer-bg: #1A1A1A;
    --footer-text: #E0E0E0;
    --text-tertiary: #915D00;
    /* Readable gold/yellow for light mode text */

    /* Spacing & Borders */
    --card-radius: 16px;
    --btn-radius: 50px;
    /* Pill shapes */
    --section-padding: 80px 0;
}

[data-bs-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1E1E1E;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --border-color: #333333;
    --nav-bg: #1E1E1E;
    /* Dark nav matches card bg usually */
    --primary-color: #4CAF50;
    /* Lighter green for dark mode contrast */
    --secondary-color: #039BE5;
    /* Lighter blue */
    --text-tertiary: #F9A825;
}

/* Accessibility & Contrast Improvements */
[data-bs-theme="light"] .text-warning {
    color: #856404 !important;
    /* Darker warning for light mode readability */
}

/* Improve readability of semi-transparent text */
.opacity-75 {
    opacity: 0.9 !important;
}

.opacity-50 {
    opacity: 0.7 !important;
}

/* Global Reset & Typography */
@media (max-width: 767.98px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s;
}

a:hover {
    color: var(--tertiary-color);
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.text-tertiary-custom {
    color: var(--text-tertiary) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
    color: white;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
    color: white;
}

.bg-tertiary-custom {
    background-color: var(--tertiary-color) !important;
    color: #1a1a1a;
}

.section-padding {
    padding: var(--section-padding);
}

/* Buttons */
.btn-custom {
    padding: 8px 16px;
    /* Reduced padding */
    border-radius: var(--btn-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    /* Smaller button text */
    white-space: nowrap;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary-custom:hover {
    background-color: #1B5E20;
    /* Darker green */
    color: white;
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary-custom:hover {
    background-color: #01579B;
    /* Darker blue */
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--tertiary-color);
    color: #000;
}

.btn-accent:hover {
    background-color: #FFD600;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

.navbar-nav {
    flex-wrap: nowrap !important;
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (min-width: 992px) {
    .offcanvas-body {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        /* Align everything towards the right but keep space */
        gap: 10px;
    }
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    margin: 0 2px;
    padding: 6px 10px !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Specific fix for 1024px (Large Desktop range where navbar gets crowded) */
@media (min-width: 992px) and (max-width: 1200px) {
    .nav-link {
        padding-left: 5px !important;
        padding-right: 5px !important;
        font-size: 0.75rem;
    }

    .navbar-nav {
        gap: 0px !important;
    }

    .offcanvas-body {
        gap: 5px !important;
    }

    .btn-custom {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Determine background image inline or specialized classes */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Cards */
.card-custom {
    border: none;
    border-radius: var(--card-radius);
    background-color: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 240px;
    object-fit: cover;
}

/* Card body layout for proper content containment in tablet view */
.card-custom .card-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-custom .card-body p {
    flex-grow: 1;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-custom .card-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card-custom .btn {
    white-space: nowrap;
    align-self: flex-start;
    margin-top: auto;
}

/* Pricing/Membership card fixes for tablet view */
.card-custom.h-100 {
    display: flex;
    flex-direction: column;
}

.card-custom.h-100 .list-unstyled {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-custom.h-100 .list-unstyled li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card-custom.h-100>.btn,
.card-custom.h-100>a.btn {
    white-space: nowrap;
    margin-top: auto;
}

/* Tablet view adjustments for cards */
@media (min-width: 768px) and (max-width: 991.98px) {
    .card-custom {
        padding: 0.5rem !important;
    }

    .card-custom .card-title {
        font-size: 1.15rem !important;
    }

    .card-custom.h-100 {
        padding: 1rem !important;
    }

    .card-custom.h-100 .list-unstyled {
        font-size: 0.85rem;
        max-width: 100% !important;
    }

    .card-custom.h-100 .display-4 {
        font-size: 2.5rem;
    }
}


/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

footer a {
    color: #B0B0B0;
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--tertiary-color);
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: 0.3s all;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Offcanvas Customization */
.offcanvas {
    background-color: var(--nav-bg);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

/* Home 2 premium sections */
.premium-experiences {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(46, 125, 50, 0.16), transparent 42%),
        radial-gradient(circle at 86% 72%, rgba(2, 119, 189, 0.14), transparent 38%),
        linear-gradient(180deg, #FFFFFF 0%, #F7FAF8 100%);
}

[data-bs-theme="dark"] .premium-experiences {
    background:
        radial-gradient(circle at 12% 18%, rgba(76, 175, 80, 0.18), transparent 42%),
        radial-gradient(circle at 86% 72%, rgba(3, 155, 229, 0.16), transparent 38%),
        linear-gradient(180deg, #121B1A 0%, #0F1618 100%);
}

.premium-eyebrow {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--secondary-color);
    margin-bottom: 0.9rem;
}

.premium-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.premium-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.benefit-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.benefit-chip i {
    font-size: 1rem;
    color: var(--primary-color);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.experience-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    min-height: 180px;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.experience-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.experience-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px;
    color: #FFFFFF;
}

.experience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.25);
}

.experience-card:hover img {
    transform: scale(1.08);
}

.experience-card--tall {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 380px;
}

.experience-card--wide {
    grid-column: span 5;
    min-height: 183px;
}

.experience-card--small {
    grid-column: span 5;
    min-height: 183px;
}

.experience-badge {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 9px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.command-center {
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    background: linear-gradient(135deg, #133527 0%, #0A2738 55%, #132D20 100%);
}

.command-center::before,
.command-center::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.command-center::before {
    width: 390px;
    height: 390px;
    top: -170px;
    right: -130px;
    background: rgba(249, 168, 37, 0.2);
}

.command-center::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
    background: rgba(3, 155, 229, 0.18);
}

.command-center .container {
    position: relative;
    z-index: 1;
}

.command-panel {
    height: 100%;
    border-radius: 22px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

.metric-tile {
    height: 100%;
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.17);
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 0.2rem;
    color: #FFFFFF;
}

.roadmap-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}

.roadmap-item:last-child {
    margin-bottom: 0;
}

.roadmap-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    background: var(--tertiary-color);
    box-shadow: 0 0 0 5px rgba(249, 168, 37, 0.18);
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .premium-benefits {
        grid-template-columns: 1fr;
    }

    .experience-card--tall,
    .experience-card--wide,
    .experience-card--small {
        grid-column: span 12;
        min-height: 240px;
    }
}

@media (max-width: 575.98px) {
    .experience-card--tall,
    .experience-card--wide,
    .experience-card--small {
        min-height: 210px;
    }

    .command-panel {
        padding: 22px;
    }

    .metric-value {
        font-size: 1.35rem;
    }
}

/* Animations */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUpFade 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-slide-up {
        animation: none;
    }

    .reveal-on-scroll,
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
