/* ================================
   Snapbil Custom Styles
   ================================ */

/* Hero Background */
.hero-bg {
    background-image: url("assets/images/hero-bg.png");
    background-size: cover;
    background-position: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sticky-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar Colors */
.sticky-nav a,
.sticky-nav h1,
#mobile-menu-btn i {
    color: white;
    transition: color 0.3s ease;
}

.sticky-nav.scrolled a,
.sticky-nav.scrolled #mobile-menu-btn i {
    color: #2b2b2b;
    /* snapbil-black */
}

.sticky-nav a:hover {
    color: #ffd600;
    /* snapbil-yellow */
}

.sticky-nav h1 {
    color: #ffd600;
    /* logo always yellow */
}

/* Mobile Menu */
#mobile-menu {
    background-color: #1a1a1a;
    color: white;
}

#mobile-menu a {
    display: block;
    padding: 1rem;
    color: white;
}

#mobile-menu a:hover {
    background-color: #ffd600;
    color: #1a1a1a;
}

.sticky-nav.scrolled #mobile-menu {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
}

.sticky-nav.scrolled #mobile-menu a {
    color: #1a1a1a;
}

.sticky-nav.scrolled #mobile-menu a:hover {
    background-color: #ffd600;
    color: #1a1a1a;
}

/* Card Hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Button Hover */
.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 214, 0, 0.5);
    /* yellow shadow */
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ffd600;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

/* Form Focus */
.form-input:focus {
    outline: none;
    border-color: #ffd600;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.3);
}

/* Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Global smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Print Safe */
@media print {

    .sticky-nav,
    .btn-hover,
    .card-hover:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Dark sections like navbar, footer */
.sticky-nav,
footer {
    background-color: #1a1a1a;
    /* softer black */
    color: #f5f5f5;
    /* light gray text */
}

/* Footer text */
footer p,
footer a {
    color: #cccccc;
    /* softer gray so it doesn’t clash with yellow */
}

/* Headings on light backgrounds */
h2,
h3,
h4 {
    color: #1a1a1a;
    /* softer black for headings */
}

/* Reset native select styles */
select {
    -webkit-appearance: none;
    /* Safari & iOS */
    -moz-appearance: none;
    /* Firefox */
    appearance: none;
    /* Standard */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    /* Rounded corners */
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    color: #111111;
    /* snapbil-black */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23111111' class='bi bi-chevron-down' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* On focus */
select:focus {
    outline: none;
    border-color: #FFD600;
    /* snapbil-yellow */
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.3);
}