/* Custom CSS for Fridgy Website */

/* --- Layout Fixes --- */

/* Sticky Footer Implementation */
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure navbar doesn't push down if it has its own logic */
.navbar-fixed-top {
    top: 0;
}

/* Utility class for pages that need navbar spacing (Content pages) */
.pt-navbar {
    padding-top: 8rem !important;
    /* increased slightly to be safe */
}

/* --- Typography Improvements --- */
.display-1 {
    font-size: 3.5rem !important;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

.display-2 {
    font-size: 2.5rem !important;
    font-weight: 600;
}

.display-4 {
    font-size: 1rem !important;
    font-weight: 500;
}

.display-5 {
    font-size: 1.8rem !important;
}

.display-7 {
    font-size: 1.1rem !important;
    line-height: 1.5;
}

/* --- Interactive Elements --- */

/* Button Hover Effects */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50px !important;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Card Hover Effects */
.card-wrapper,
.item-wrapper {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 1rem;
    overflow: hidden;
}

.card:hover .card-wrapper,
.item:hover .item-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Navbar Link Hover */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0c85d0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Scroll Animations --- */

/* Base class for elements to animate */
.animate-on-scroll {
    opacity: 0;
    transition: all 1s ease-out;
}

/* Fade Up */
.fade-up {
    transform: translateY(30px);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In */
.fade-in {
    opacity: 0;
}

.fade-in.visible {
    opacity: 1;
}

/* Slide In Left */
.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* --- Typing Effect --- */
.typing-effect {
    border-right: 3px solid #fff;
    white-space: nowrap;
    overflow: hidden;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #fff;
    }
}

/* --- Navbar Dynamic Background --- */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* --- Fix Contact Link Contrast --- */
/* Overrides neon green on white background */
.contacts1 a.text-primary,
.contacts1 a.text-primary:hover,
.contacts1 a.text-primary:focus {
    color: #156934 !important;
    /* Darker, readable green */
    font-weight: 600;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

    /* Navbar Spacing */
    .pt-navbar {
        padding-top: 6rem !important;
    }

    /* Typography Scaling */
    .display-1 {
        font-size: 2.5rem !important;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    /* Container padding tweaks */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}