/* Import Helvetica Now Black */
@font-face {
    font-family: 'Helvetica Now Black';
    src: url('/assets/fonts/helveticanow-black.ttf') format('truetype');
    font-weight: 900; /* Use 900 for Black weight */
    font-style: normal;
}

/* Import Helvetica Now Black Italic */
@font-face {
    font-family: 'Helvetica Now Black';
    src: url('/assets/fonts/helveticanow-blackitalic.ttf') format('truetype');
    font-weight: 900; /* Use 900 for Black weight */
    font-style: Italic;
}

/* General Reset & Typography */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
caption, tbody, tfoot, thead, tr, th, td {
  margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; background: transparent;
}


body {
    font-family: 'Helvetica Now Black', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #222;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.framed-box {
    max-width: 800px; /* Limit the width of the frame */
    margin: 2rem auto; /* Center the section and add vertical spacing */
    border: 1px solid #ccc; /* Optional: Border for the frame */
    border-radius: 20px; /* Rounded corners for the frame */
    background: #fff; /* Background color inside the frame */
    padding: 2rem; /* Add spacing inside the frame */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for a modern look */
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Put it behind everything else */
}

/* Header Styles */
header {
    background-color: rgba(217, 217, 217, 0.7);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 15px;
    z-index: 1000;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

header img {
    max-width: 111px;
    height: auto;
    margin-right: 2rem;
    transition: opacity 0.3s ease;
}

header img:hover {
    content: url('/assets/images/logo_leyra_hover.png');
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Sections */
section {
    padding: 5rem 1rem;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

section p {
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    color: #333;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    filter: grayscale(20%) contrast(1.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.2);
    filter: grayscale(0%) contrast(1);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    color: #000000;
    font-size: 0.9rem;
}


label, input, textarea {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

input, textarea {
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Helvetica Now Black', sans-serif;
    color: #222;
    background: #fff;
}

button {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 20px;
    font-weight: 700;
    transition: background-color 0.3s ease;
    font-family: 'Helvetica Now Black', sans-serif;
}

button:hover {
    background-color: #333;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed; 
    z-index: 2000; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center; 
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 40%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

/* Navigation buttons inside the lightbox */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50px;
    z-index: 2001;
    transition: background 0.3s ease, color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.5);
    color: black;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* Lightbox fade-in */
.lightbox.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

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

/* Desktop-like Folder Container */
.desktop-folders {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
    align-items: center;
}

/* Individual Folder Icons */
.folder {
    position: absolute;
    width: 100px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.folder:hover {
    transform: scale(1.05);
}

.folder-icon {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 0.5rem auto;
}

.folder p {
    font-size: 0.9rem;
    color: #333;
}

/* Modal Overlay */
.folder-preview-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease forwards;
}

/* Modal Content */
.folder-preview-content {
    background: #ffffff;
    margin: 5% auto;
    padding: 2rem;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.folder-preview-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    font-family: 'Helvetica Now Black', sans-serif;
    color: #111;
}

.folder-preview-content p {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.folder-preview-gallery {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.folder-preview-gallery img {
    width: calc(50% - 0.5rem);
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
}

/* Close Button */
.folder-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #111;
    cursor: pointer;
}

/* Show Modal Class */
.folder-preview-modal.show {
    display: flex;
}

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

/* Scrolling Text Box Container */
.scrolling-text-box {
    position: relative;
    overflow: hidden;
    height: 150px;
    background-color: #f5f5f5;
    border: 2px solid;
    margin: 20px 0;
    display: flex;
    align-items: center;
    /* Optional: Add padding if needed */
    /* padding: 0 20px; */
}

/* Scrolling Text */
.scrolling-text {
    display: flex;
    /* The width should be at least twice the content to allow seamless scrolling */
    width: 200%;
    animation: scroll-left 10s linear infinite;
}

/* Individual Words/Spans */
.scrolling-text span {
    white-space: nowrap;
    margin-right: 50px;
    font-size: 6rem;
    font-family: 'Helvetica Now Black', sans-serif;
    color: #222;
}

/* Keyframes for Scrolling Animation */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pause Animation on Hover (Optional) */
.scrolling-text-box:hover .scrolling-text {
    animation-play-state: paused;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    :root {
        --scroll-duration: 15s; /* Increase duration for smaller screens */
        --word-spacing: 20px;
        --font-size: 1rem;
        --box-height: 40px;
    }
}

/* Headings (optional) */
h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #111;
    text-align: center;
    font-family: 'Helvetica Now Black', sans-serif;
}

.social-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: #333; /* Ensure this contrasts with the background */
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: #0073b1; /* Change to a color that stands out on hover */
    transform: scale(1.2);
}

/* Optional: Ensure icons are displayed correctly */
.social-icons i {
    display: inline-block;
}