/* Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Avenir';
    background-color: #ede0c0;
    color: #fff;
    overflow-x: hidden;
}





h1,
h2,
h3,
.logo a {
    font-family: 'avenir';
    /* A more medieval/elegant font for headings */
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(237, 224, 192, 0.95);
    padding: 15px 50px;
    box-shadow: 0 4px 15px rgba(237, 224, 192, 0.3);
}

.navbar.scrolled .nav-links a {
    color: rgba(75, 46, 33);
}

.navbar.scrolled .bar {
    background-color: rgba(75, 46, 33);
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-img {
    height: clamp(35px, 6vw, 55px);
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: clamp(15px, 3vw, 40px);
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.6rem, 1vw, 0.85rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline animation on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffffff;
    /* Gold accent color */
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: #ede0c0;
}

/* Mobile Menu Toggle (hidden by default) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 100;
    /* Ensure it stays above the side menu */
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s ease;
}

/* Hamburger animation to X */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-left: 10%;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 ratio */
    transform: translate(-50%, -50%) scale(1.3);
    /* Scale up to crop out YouTube player chrome (title, channel, logo, playbar) */
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay to make text pop */
}

/* Thumbnail cover: shown while YouTube video loads, fades out on play */
.video-thumb-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://img.youtube.com/vi/8hMrWXNYhV0/maxresdefault.jpg');
    background-size: cover;
    background-position: center;
    z-index: 2;
    transition: opacity 1s ease;
}

.video-thumb-cover.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 0 30px 0;
    display: block;
    animation: fadeInDown 1s ease-out forwards;
}

.hero-content h1 {
    font-size: clamp(1rem, 3vw, 1.8rem);
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out forwards;
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.8rem);
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;

}

/* Call to Action Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 1rem;
    color: #fff;
    background-color: rgba(75, 46, 33);
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
    border-radius: 20px;
}


.btn:hover {
    color: rgba(75, 46, 33);
    background-color: #fff;

}

/* History Section */
.history-section {
    background-color: #ede0c0;
    color: #333;
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.history-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.history-text {
    flex: 1;
}

.history-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 30px;
    color: #4b2e21;
    font-weight: 700;
}

.history-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: justify;
}

.history-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.history-image img {
    max-width: 75%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}



/* Encontrar Section */
.encontrar-section {
    padding: 100px 10%;
    background-color: #4b2e21;
    color: #fff;
    text-align: center;
}

.encontrar-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 50px;
    font-weight: 700;
    color: #ede0c0;
}




.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
}

.card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(237, 224, 192, 0.2);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    padding: 30px 10px 15px 10px;
    font-size: 1.2rem;
    font-weight: 600;
    pointer-events: none;
}

/* Modal / Lightbox */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.close-modal:hover {
    color: #ede0c0;
}

.modal-content {
    position: relative;
    display: flex;
    align-items: center;
    width: 95%;
    max-width: 1200px;
}

.modal-image-container {
    flex: 1;
    text-align: center;
    position: relative;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    transition: opacity 0.2s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    color: #ede0c0;
    font-size: 1.2rem;
    margin-top: 15px;
    font-weight: 300;
    letter-spacing: 1px;
}

.prev-btn,
.next-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    padding: 0 30px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.prev-btn:hover,
.next-btn:hover {
    color: #ede0c0;
    transform: scale(1.1);
}



/* Countdown Section */
.countdown-section {
    padding: 80px 10%;
    background-color: #ede0c0;
    color: #4b2e21;
    text-align: center;
}

.countdown-section h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 40px;
    font-weight: 700;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 150px;
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-item span:first-child {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #4b2e21;
}

.countdown-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7b5536;
    font-weight: 600;
}

/* Programa Section */
.programa-section {
    padding: 100px 10%;
    background-color: #4b2e21;
    color: #fff;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.programa-section h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 60px;
    font-weight: 700;
    color: #ede0c0;
}

.programa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 30px;
    justify-content: center;
}

.programa-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(237, 224, 192, 0.15);
}

.programa-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: #f9f9f9;
    padding: 20px;
}

.programa-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.programa-card:hover .programa-image img {
    transform: scale(1.05);
}

.programa-info {
    padding: 25px 20px;
    background: #ede0c0;
    color: #fff;
    text-align: center;
}

.programa-info h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #4b2e21;
}

.programa-info p {
    font-size: 1.1rem;
    color: #4b2e21;
    font-weight: 300;
}

/* As Nossas Ruas Section */
.ruas-section {
    position: relative;
    padding: 150px 10%;
    background-image: url('assets/As_nossas_ruas.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-position 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #fff;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ruas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.ruas-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.ruas-content h2 {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 30px;
    font-weight: 700;
    color: #ede0c0;
}

.ruas-content p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.6;
}



/* Contactos Section */
.contactos-section {
    background-color: #ede0c0;
    color: #4b2e21;
    padding: 165px 0 20px 0;
    width: 100%;
}

.contactos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10%;
}

.contactos-header {
    text-align: center;
    margin-bottom: 60px;
}

.contactos-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 15px;
    font-weight: 700;
    color: #4b2e21;
}

.contactos-header p {
    font-size: 1.2rem;
    color: #4b2e21;
    font-weight: 300;
}

.contactos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    border-top: 1px solid #4b2e21;
    padding-top: 50px;
    justify-content: center;
    text-align: center;
}

.contactos-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
}

.contactos-info .info-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contactos-info h4 {
    font-size: 1.3rem;
    color: #4b2e21;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contactos-info a i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    margin-right: 12px;
}

.contactos-info a {
    color: #4b2e21;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.contactos-info a:not(.onde-ficar-btn):hover {
    color: #ffffff;
    transform: translateX(3px);
}

.onde-ficar-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #ede0c0;
    color: #4b2e21;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.onde-ficar-btn i {
    margin-right: 8px;
}

.onde-ficar-btn:hover {
    background-color: #351f16 !important;
    color: #fff !important;
}

.onde-ficar-btn:hover i {
    color: #fff;
}

.contactos-social h4,
.logos-apoio h4 {
    font-size: 1.3rem;
    color: #4b2e21;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: #4b2e21;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.social-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.contactos-apoios {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.livro-reclamacoes img {
    height: 25px;
    transition: transform 0.3s ease;
}

.livro-reclamacoes img:hover {
    transform: scale(1.05);
}

.logos-apoio img {
    height: 70px;
    margin: 0 10px 20px 10px;
    vertical-align: middle;
}

.footer-links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links-container a {
    color: #4b2e21;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-container a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #4b2e217a;
    padding: 20px 10% 0 10%;
    color: #4b2e217a;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blurIn {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Reveal Animation Utilities */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity, filter;
}

.reveal.reveal-up {
    transform: translateY(50px);
}

.reveal.reveal-down {
    transform: translateY(-50px);
}

.reveal.reveal-left {
    transform: translateX(-50px);
}

.reveal.reveal-right {
    transform: translateX(50px);
}

.reveal.reveal-zoom {
    transform: scale(0.9);
}

.reveal.reveal-blur {
    filter: blur(10px);
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* Parallax Effect Classes */
.parallax-section {
    overflow: hidden;
    position: relative;
}

.parallax-target {
    will-change: transform;
    backface-visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Floating Decorative Icons */
.floating-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    color: rgba(75, 46, 33, 0.08);
    /* Very subtle brown */
    font-size: clamp(2rem, 10vw, 8rem);
    user-select: none;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific speed modifiers */
.parallax-slow {
    --speed: 0.1;
}

.parallax-medium {
    --speed: 0.25;
}

.parallax-fast {
    --speed: 0.5;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding-left: 6%;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-logo {
        max-width: 320px;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: clamp(0.9rem, 4vw, 1.3rem);
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        margin-bottom: 30px;
    }

    .hero-content .btn {
        padding: clamp(10px, 3vw, 14px) clamp(20px, 8vw, 35px);
        font-size: clamp(0.8rem, 3vw, 0.95rem);
    }

    .navbar {
        padding: 20px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 250px;
        background-color: rgba(75, 46, 33, 0.99);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .history-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .history-text h2 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .history-section {
        padding: 60px 5%;
        min-height: auto;
    }

    .ruas-section {
        background-attachment: scroll;
        min-height: auto;
        padding: 80px 5%;
    }

    .navbar.scrolled .nav-links a {
        color: #fff;
    }

    .menu-toggle.active .bar {
        background-color: #fff !important;
    }

    .encontrar-section {
        padding: 60px 5%;
    }

    .prev-btn,
    .next-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 10px;
        font-size: 35px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 5px;
        z-index: 10;
    }

    .prev-btn {
        left: -10px;
    }

    .next-btn {
        right: -10px;
    }

    .countdown-container {
        gap: 15px;
        padding: 0 10px;
    }

    .countdown-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
        padding: 15px 10px;
        box-sizing: border-box;
    }

    .countdown-item span:first-child {
        font-size: 2.5rem;
    }

    .contactos-section {
        padding: 60px 0;
    }

    .contactos-container {
        padding: 0 5%;
    }

    .footer-links-container {
        gap: 10px;
        margin-bottom: 15px;
    }

    .footer-links-container a {
        font-size: 0.65rem;
    }

    .livro-reclamacoes img {
        height: 18px;
    }

    .footer-bottom {
        padding: 15px 5% 0 5%;
        margin-top: 15px;
        font-size: 0.6rem;
    }

    .contactos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding-top: 20px;
    }

    .contactos-info {
        margin: 0;
        width: 100%;
    }

    .contactos-info .info-item {
        font-size: 0.65rem;
        gap: 5px;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .contactos-info h4,
    .contactos-social h4,
    .logos-apoio h4 {
        font-size: 0.75rem;
        margin-bottom: 10px;
        letter-spacing: 0;
    }

    .contactos-info a i,
    .social-links a i {
        font-size: 0.8rem;
        width: 15px;
        margin-right: 5px;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        font-size: 0.65rem;
    }

    .logos-apoio img {
        height: 30px;
        margin: 0 5px 10px 5px;
    }

    .onde-ficar-btn {
        padding: 4px 8px;
        font-size: 0.55rem;
        margin-top: 5px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: rgba(75, 46, 33, 0.8);
    color: #ede0c0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #4b2e21;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}