﻿/* Shared Styles from Index */
:root {
    --brand-lightest: #EBEDEA;
    --brand-light: #CAD2C5;
    --brand-medium: #84A98C;
    --brand-teal: #52796F;
    --brand-darkTeal: #354F52;
    --brand-darkest: #2F3E46;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth
}

.playfair {
    font-family: 'Playfair Display',serif !important
}
/* Navbar states */
#navbar {
    transition: background-color .35s ease,backdrop-filter .35s ease,box-shadow .35s ease
}

.nav-transparent {
    background-color: transparent;
    box-shadow: none
}

.nav-glass {
    background-color: rgba(0, 105, 92, 0.5);
    );
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 24px rgba(0,0,0,.2);
    border-bottom: 1px solid rgba(235,237,234,.08)
}

/* Animated visibility */
.nav-visible {
    opacity: 1 !important;
    transform: translateY(0) !important
}

.nav-hidden {
    opacity: 0 !important;
    transform: translateY(-6px) !important
}

/* Nav link underline + color states */
.nav-link {
    position: relative;
    transition: color .25s ease,opacity .25s ease
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background-color: currentColor;
        transition: width .25s ease
    }

    .nav-link:hover::after {
        width: 100%
    }

.nav-dark {
    color: var(--brand-teal) !important
}

.nav-light {
    color: var(--brand-lightest) !important
}

.nav-icon {
    transition: transform .2s ease,opacity .2s ease,color .25s ease
}

.icon-dark {
    color: var(--brand-teal) !important
}

.icon-light {
    color: var(--brand-lightest) !important
}

.nav-icon:hover {
    transform: scale(1.08);
    opacity: .85
}

#navbar-logo {
    transition: opacity .3s ease,transform .3s ease
}

/* Drawer (outside navbar) */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(2px);
    z-index: 98;
    display: none
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 18rem;
    background: rgba(53,79,82,.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
    z-index: 99;
    display: none;
    flex-direction: column;
    padding-top: 6rem;
    padding-bottom: 1.5rem
}

.drawer-item {
    border-bottom: 1px solid rgba(235,237,234,.18);
    color: var(--brand-lightest);
    padding: .75rem 1.5rem
}

    .drawer-item:last-child {
        border-bottom: none
    }

.drawer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--brand-lightest);
    font-size: 1.25rem
}

@keyframes drawerIn {
    0% {
        transform: translateX(-100%);
        opacity: 0
    }

    100% {
        transform: translateX(0);
        opacity: 1
    }
}

.drawer-enter {
    animation: drawerIn .35s ease-out forwards
}

/*.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    background-color: var(--brand-darkTeal);
    color: var(--brand-lightest);
    box-shadow: 0 16px 32px rgba(0,0,0,.28);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease,transform .25s ease;
    z-index: 60
}

    .scroll-top.visible {
        opacity: 1;
        pointer-events: auto;
        animation: fadeScaleIn .4s ease-out forwards
    }*/

    .scroll-top:hover {
        transform: translateY(-3px) scale(1.04)
    }

/* Ensure icon anchors are compact and centered */
#navbar .nav-icon,
#navbar a i.fa-brands {
    line-height: 1;
}

/* Prevent stray text spacing around icons */
#navbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hamburger lines light */
#mobile-menu-btn.light span {
    background-color: var(--brand-lightest);
}

/* Logo filter if using same asset */
.logo-light {
    filter: brightness(0) invert(1);
}

/* Dark vs light states */
.nav-dark {
    color: var(--brand-teal) !important;
}

.nav-light {
    color: var(--brand-lightest) !important;
}

.icon-dark {
    color: var(--brand-teal) !important;
}

.icon-light {
    color: var(--brand-lightest) !important;
}

/* Logo filter if you use same asset */
.logo-light {
    filter: brightness(0) invert(1);
}

.border-brand-light {
    border-color: var(--brand-light);
}
/* Ensure staggered bounce looks smooth */
.animate-bounce {
    animation: bounce 1.5s infinite;
}

/* Animation Utilities */
/* Explicitly defining keyframes here to ensure CSS visibility */
@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-active {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Custom Card Hover */
.approach-card:hover {
    transform: translateY(-10px);
}

    .approach-card:hover .icon-wrapper {
        background-color: #84A98C;
        color: white;
        transform: scale(1.1);
    }

/* List Styling */
.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

    .custom-list li::before {
        content: '\f00c'; /* FontAwesome check */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        left: 0;
        top: 4px;
        color: #84A98C;
    }
/* Corrected Water Ripple Animation */
.water-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q 25 0 50 10 T 100 10' fill='none' stroke='%23CAD2C5' stroke-width='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: water-flow 10s linear infinite;
}

@keyframes water-flow {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.dark-gradient-bg {
    background: linear-gradient(135deg, #2F3E46 0%, #354F52 50%, #52796F 100%);
}