/* Global Styles */
:root {
    --primary-color: #5D4037;  /* Café oscuro mejorado */
    --secondary-color: #333333;  /* Negro Suave */
    --accent-color: #F0F0F0;  /* Blanco Oscuro */
    --text-color: #212121;  /* Negro más oscuro para mejor contraste */
    --secondary-text-color: #3E2723; /* Café oscuro mejorado */
    --light-text: #FFFFFF;  /* Blanco */
    --background: #F0F0F0;  /* Fondo blanco oscuro unificado */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Carattere', cursive;
    font-weight: 400;
    color: var(--text-color);
    text-align: center;
}

h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
}

/* Estilos para los círculos de colores en vestimenta */
.color-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    gap: 2rem;
    max-width: 300px;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-circle.white {
    background-color: #ffffff;
}

.color-circle.beige {
    background-color: #e6d9c5;
}

/* Estilo para la sección de adultos solamente */
.adults-only-section {
    text-align: center;
    padding: 0 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.adults-only-text {
    font-family: 'Carattere', cursive;
    font-size: 1.8rem;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Estilo para la sección de padres */
.parents-section h2 {
    font-size: 3rem; /* Tamaño ligeramente más pequeño */
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
    font-family: 'Carattere', cursive;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header with 3-column image */
.header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.single-image-columns {
    display: flex;
    justify-content: center;
    gap: 5px; /* Small gap between columns */
    margin: 0 auto;
    max-width: 1000px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-column {
    flex: 1;
    min-width: 0; /* Allows columns to shrink below content size */
    overflow: hidden;
    transition: all 0.3s ease;
}

.column-img {
    width: 100%;
    height: 400px; /* Fixed height for all images */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-column:hover {
    flex: 1.2; /* Slightly expand on hover */
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-image-columns {
        flex-direction: column;
        max-width: 100%;
        padding: 10px;
    }
    
    .image-column {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .column-img {
        height: 200px;
    }
    
    .image-column:last-child {
        margin-bottom: 0;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: 'Montserrat', sans-serif;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.guest-greeting {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
    margin-top: 1rem;
    height: 2rem; /* Reserve space to prevent layout shift */
    transition: opacity 0.5s;
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.modal-content input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.modal-content .btn {
    cursor: pointer;
}

/* Happiness Section */
.happiness-section {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--light-text);
}

.happiness-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.date {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.line {
    height: 1px;
    width: 100px;
    background-color: var(--secondary-color);
    margin: 0 1rem;
}

.timeline-content {
    display: flex;
    flex-direction: column; /* Apila el ícono y el texto verticalmente */
    align-items: center; /* Centra los elementos horizontalmente */
    text-align: center; /* Centra el texto de la etapa */
    margin-bottom: 2rem; /* Añade espacio entre etapas del timeline */
}

.timeline-icon {
    color: var(--secondary-color);
    font-size: 3rem; /* Aumenta el tamaño del ícono */
    margin-bottom: 1rem; /* Añade espacio debajo del ícono */
}

.fa-heart {
    color: var(--secondary-color);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.happiness-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--accent-color);
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.countdown-item span:last-child {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.italic-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 2rem;
    color: var(--secondary-text-color);
}

/* Parents Section */
.parents-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--light-text);
}

.parents-section h2 {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.parents-section h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 25%;
}

.parents-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.parents-group {
    flex: 1;
    min-width: 250px;
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.parents-group:hover {
    transform: translateY(-5px);
}

.parents-group h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.parents-group p {
    margin: 0.5rem 0;
    color: var(--secondary-text-color);
}

/* Image Section */
.image-section {
    height: 60vh;
    overflow: hidden;
    position: relative;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Event Cards */
.event-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: var(--light-text);
    flex-wrap: wrap;
}

.event-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 2rem;
}

.event-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.event-date {
    color: var(--secondary-text-color);
    font-weight: 500;
    margin: 1rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    margin-top: 1rem;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Timeline Section */
.timeline-section {
    padding: 4rem 2rem;
    background-color: #fff9f9;
    text-align: center;
}

.timeline-section h2 {
    font-size: 4rem; /* Ajustar tamaño para la nueva fuente */
    margin-bottom: 3rem;
    color: var(--text-color) !important;
    position: relative;
    display: inline-block;
    font-style: normal !important; /* Quitar cursiva extra */
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e0c9c9;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-time {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.divider i {
    color: var(--secondary-color);
    font-size: 1.8rem; /* Made icon slightly larger */
    margin: 0 1rem;
    transform: translateY(4px); /* Align better with lines */
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    flex: 1;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 25px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
    transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    transform: translateX(-50%);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 70px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: 15px;
        right: auto;
        transform: translateX(0);
    }
}

/* Gifts Section */
.gifts-section {
    padding: 6rem 2rem;
    text-align: center;
    background-color: var(--light-text);
    position: relative;
    overflow: hidden;
    background-image: url('https://www.transparenttextures.com/patterns/light-wool.png');
    background-attachment: fixed;
}

.gifts-section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 4rem;
    color: var(--text-color) !important;
    font-size: 4rem; /* Ajustar tamaño para la nueva fuente */
    font-style: normal !important; /* Quitar cursiva extra */
}

.gifts-section h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.gifts-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.gift-option {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.gift-option:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: all 0.3s ease;
}

.gift-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.gift-option:hover:before {
    height: 100%;
    opacity: 0.05;
}

.gift-option i {
    font-size: 2.8rem;
    color: #000 !important;
    margin-bottom: 1.5rem;
    position: relative;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.gift-option:hover i {
    transform: scale(1.1) translateY(-5px);
    text-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.gift-option p {
    color: var(--text-color);
}

.gift-option h3 {
    color: var(--text-color);
    margin-bottom: 1.2rem;
    font-size: 2.5rem; /* Ajustar tamaño para la nueva fuente */
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.gift-option h3:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.gift-option:hover h3:after {
    width: 80%;
}

.bank-account {
    text-align: center;
}

.bank-account p {
    margin: 0.7rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
    padding-left: 25px;
    text-align: left;
}

.bank-account p:before {
    content: '•';
    color: var(--secondary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 5px;
    top: -5px;
}

/* Special styling for the envelope icon */
.gift-option:first-child i {
    color: var(--primary-color);
}

/* Animation for gift options */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gift-option {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.gift-option:nth-child(1) { animation-delay: 0.1s; }
.gift-option:nth-child(2) { animation-delay: 0.3s; }
.gift-option:nth-child(3) { animation-delay: 0.5s; }

/* Dress Code Section */
.dresscode-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--accent-color);
}

.dresscode-subtitle {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.color-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.color-box:hover {
    transform: scale(1.1);
}

.dresscode-note {
    max-width: 600px;
    margin: 2rem auto 0;
    font-style: italic;
    color: var(--text-color);
}

/* RSVP Section */
.rsvp-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--light-text);
}

.rsvp-text {
    max-width: 600px;
    margin: 1rem auto 2rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.rsvp-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.rsvp-btn:hover {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    position: relative;
    text-align: center;
    background-color: var(--accent-color);
    margin-top: 8rem;
    padding-top: 2rem;
    overflow: hidden; /* Contiene las olas */
}

.footer-content {
    position: relative;
    z-index: 10;
    padding-bottom: 8rem; /* Espacio para que no se solape con las olas */
}

.footer-content p {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-color);
}



/* Animated Waves */
.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('https://static.tumblr.com/wv1xczn/wRimpj4ch/wave.png');
    background-size: 1000px 100px;
}

#wave1 {
    animation: animate 30s linear infinite;
    z-index: 4;
    opacity: 1;
    animation-delay: 0s;
    bottom: 0;
}

#wave2 {
    animation: animate2 15s linear infinite;
    z-index: 3;
    opacity: 0.5;
    animation-delay: -5s;
    bottom: 10px;
}

#wave3 {
    animation: animate 30s linear infinite;
    z-index: 2;
    opacity: 0.2;
    animation-delay: -2s;
    bottom: 15px;
}

#wave4 {
    animation: animate2 5s linear infinite;
    z-index: 1;
    opacity: 0.7;
    animation-delay: -5s;
    bottom: 20px;
}

@keyframes animate {
    0% { background-position-x: 0; }
    100% { background-position-x: 1000px; }
}

@keyframes animate2 {
    0% { background-position-x: 0; }
    100% { background-position-x: -1000px; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .happiness-section h1 { font-size: 3rem; }
    .date { font-size: 1.2rem; }
    .parents-grid, .gifts-grid { flex-direction: column; align-items: center; gap: 2rem; }
    .timeline:before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        left: 0;
    }
    .timeline-dot { left: 10px !important; }
    .timeline-content::before { display: none; }
    .gifts-grid { grid-template-columns: 1fr; }
    .dresscode-section .dresscode-note { padding: 0 1rem; }
    .hashtag { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .happiness-section h1 { font-size: 2.5rem; }
    #countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .countdown-item {
        padding: 0.5rem;
        min-width: 100px;
    }
    .countdown-item span {
        font-size: 2rem;
    }
    .timeline-item, .timeline-item:nth-child(even) {
        padding-left: 45px;
    }
    .timeline-dot { left: 5px !important; }
    .timeline-time {
        font-size: 0.9rem;
    }
    .timeline-content h3 {
        font-size: 1rem;
    }
    .timeline-icon {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(40px);
}

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

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

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

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

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* Countdown flip animation */
#countdown .countdown-item span:first-child {
    display: inline-block;
    transition: transform 0.3s ease;
}

#countdown .countdown-item span:first-child.flip {
    animation: flipInY 0.6s ease-out forwards;
    transform-origin: 50% 50%;
}

/* Loading animation */
body:not(.loaded) {
    overflow: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-text);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

body.loaded .loading-screen {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Loading Screen */
.loading-screen-content {
    text-align: center;
}

.timeline-content {
    text-align: center;
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Un poco más de grosor para el subtítulo */
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color) !important;
}

.loading-screen h2 {
    color: var(--primary-color);
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}
