@font-face {
    font-family: 'Brutalista';
    src: url('fonts/Brutalista-Bold.otf') format('opentype');
    font-weight: bold;
}

@font-face {
    font-family: 'Gyordana';
    src: url('fonts/Gyordana-Serif-3.otf') format('opentype');
}

@font-face {
    font-family: 'ModularInferno';
    src: url('fonts/ModularInferno.otf') format('opentype');
}

@font-face {
    font-family: 'Yadrana';
    src: url('fonts/YadranaV6.otf') format('opentype');
}

@font-face {
    font-family: 'Razzmatazz';
    src: url('fonts/Razzmatazz.otf') format('opentype');
}

@font-face {
    font-family: 'Ribbs';
    src: url('fonts/Ribbs.otf') format('opentype');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Drawing Canvas Styles */
#drawingCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: none;
}

#drawingCanvas.fade-out {
    opacity: 0;
}

/* Custom Cursor Styles */
.custom-cursor {
    position: fixed;
    width: 38px;
    height: 38px;
    background-image: url('images/cursor.png');
    background-size: 38px 38px;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform-origin: 0 0;
    will-change: transform;
}

:root {

    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #111111
    --text-light: #999999;
    --accent-red: #d32f2f;

}

body {
    font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {

    padding: 60px 40px 50px;
    text-align: center;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

.snapshot-btn {
    position: absolute;
    top: 90px;
    right: 90px;
    background-color: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.snapshot-btn:hover {
    background-color: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.snapshot-btn:hover::after {
    content: 'Save your work of art';
    position: absolute;
    bottom: -35px;
    right: 0;
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
}

.snapshot-btn:active {
    transform: translateY(0);
}

.logo {

    max-width: 50%;
    height: auto;
    display: inline-block;
}

.logo img {
        margin-bottom: 50px;
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.about-section {
    padding: 60px 40px;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.about-text p {
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text-gray);
    text-align: justify;
}

.about-visual {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 60px;
    height: 320px;
}

.overlap-image {
    position: absolute;
    object-fit: cover;
    border-radius: 4px;
}

.image-1 {
    width: 160px;
    height: 160px;
    bottom: -10px;
    left: -100px;
    z-index: 2;
}

.image-2 {
    width: 290px;
    height: 290px;
    z-index: 1;
}

/* Hide on mobile/standard displays */
#sideNav {
    display: none;
}

/* Enable for Ultra-wide (1695px+) */
@media (min-width: 1695px) {
    #sideNav {
        display: flex;
        position: fixed;
        left: 32px;
        top: 50%;
        z-index: 100;
        flex-direction: column;
        justify-content: center;
        
        font-family: inherit;
        font-size: 10px;
        font-weight: 300;
        letter-spacing: 0.05em;

        /* Hidden State: Slid off-screen to the left */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-150%, -50%);
        
        /* Hiding Animation: 0.8s duration, delayed visibility to let slide finish */
        transition: 
            transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), 
            opacity 0.6s ease,
            visibility 0s linear 0.8s;
    }

    #sideNav.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(0, -50%);
        /* Showing Animation: Instant visibility */
        transition: 
            transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), 
            opacity 0.4s ease,
            visibility 0s linear 0s;
    }

    /* List Item Styling */
    #sideNav ul { list-style: none; margin: 0; padding: 0; }
    #sideNav li { margin-bottom: 15px; transform: rotate(-10deg); transition: transform 0.3s ease; }
    #sideNav a { text-decoration: none; color: rgb(163, 163, 163); transition: color 0.3s ease; display: inline-block; }
    
    /* Hover Effects */
    #sideNav a:hover { color: rgb(31, 31, 31); text-shadow: 0.5px 0 0 currentColor; }
    #sideNav li:hover { transform: rotate(0deg); }

    .side-contact { margin-top: 30px; font-size: 11px; opacity: 0.5; }
}

.look-further-canvas {
    position: relative;
    width: 100%;
    height: 900px;
}

.look-further-canvas span {
    position: absolute;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: #111;
    white-space: nowrap;
}




/* Editorial Section */
.editorial-section {
    background-color: var(--bg-light);
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 50px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.project-item {
    margin-bottom: 60px;
    padding-bottom: 40px;

}

.project-item:last-child {
    border-bottom: none;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
}

.project-behance {
    font-size: 9px;
    font-weight: 500;
    color: white;
    background-color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.project-behance:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
}

.project-date {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}

.project-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
}

.project-info p {
    font-size: 12px;
    line-height: 1.85;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.project-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 20px;
    color: var(--text-dark);
}

/* Gallery Layout: 1 large + 4 small in 2x2 grid */
.project-gallery {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 12px;
    min-height: 361px;
}

.gallery-main {
    background-color: #e8e8e8;

    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 2.4;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gallery-item {
    background-color: #e8e8e8;

    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 2.8;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.gallery-main img,
.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 40px;
    overflow: auto;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-modal-image {
    width: 80vw;
    height: 70vh;
    object-fit: contain;
    margin-bottom: 30px;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.gallery-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-modal-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
    font-size: 14px;
}

.gallery-nav-prev,
.gallery-nav-next {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;

}

.gallery-nav-prev:hover,
.gallery-nav-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-nav-prev:disabled,
.gallery-nav-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-modal-counter {
    white-space: nowrap;
}

/* Fonts Section */
.fonts-section {
    padding: 80px 40px 60px;
    background-color: var(--bg-white);
}

/* Posters Section */
.posters-section {
    padding: 80px 40px 60px;
    background-color: var(--bg-light);
}

/* Branding Section */
.branding-section {
    padding: 80px 40px 60px;
    background-color: var(--bg-white);
}

.fonts-catalogue {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.fonts-logo {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.fonts-logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.fonts-logo a:hover {
    transform: scale(1.05);
}

.fonts-logo img {
    max-width: 400px;
    width: 400px;
    height: auto;
    display: block;
}

.font-item {
    background-color: var(--bg-light);
    padding: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.font-item:hover {
    background-color: #ebebeb;
    border-color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.font-item.active {
    border-color: var(--text-dark);
    background-color: white;
}

.font-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
    padding-bottom: 15px;

}

.font-name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.font-category {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.font-preview {
    margin: 25px 0;
}

.font-display {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.font-alphabet {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-top: 20px;
}

.font-weights {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.weight-badge {
    padding: 5px 12px;
    background-color: white;

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}
/* Motion Graphics */
.video-wrapper {
  width: 100%;
  height: 68vh;            /* ≈ 700px on a 1000px screen */
  max-height: 400px;       /* optional safety cap */
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper iframe {
  width: 80%;              /* or 100% if you want full width */
  height: 100%;
}

/* Font Modal Overlay */
.font-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Changed from auto to cover screen */
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    padding: 20px; /* Reduced padding for mobile friendliness */
    box-sizing: border-box; /* Crucial: includes padding in width/height */
    overflow-y: auto;
}

.font-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Box */
.modal-content {
    background-color: white;
    max-width: 900px;
    width: 100%;
    max-height: 90vh; /* Prevents it from going off-screen vertically */
    padding: 40px;    /* Slightly reduced from 60px */
    position: relative;
    overflow-y: auto; /* Adds internal scroll if content is huge */
    box-sizing: border-box;
    animation: modalSlideIn 0.3s ease;
}

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


.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--text-dark);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    background-color: #333;
}

.modal-font-name {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-font-info {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.preview-controls {
    margin-bottom: 30px;
}

.preview-text-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;

    margin-bottom: 20px;
    font-family: inherit;
}

.preview-text-input:focus {
    outline: none;
    border-color: var(--text-dark);
}

.slider-container {
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.font-size-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    outline: none;
    border-radius: 3px;
}

.font-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--text-dark);
    cursor: pointer;
    border-radius: 50%;
}

.font-size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--text-dark);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.preview-output {
    min-height: 200px;
    padding: 30px;
    background-color: var(--bg-light);
    margin-top: 20px;
    line-height: 1.4;
    word-wrap: break-word;
    border: 2px solid #eee;
}

.specimen-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.specimen-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.character-set {
    font-size: 18px;
    line-height: 2;
    color: var(--text-gray);
}

/* Contact Section */
.contact-section {
    padding: 60px 40px 70px;
    text-align: center;
    background-color: var(--bg-light);
}

.contact-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 35px;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 18px;
    font-weight: 500;
    margin: 8px 0;
    color: var(--text-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 35px;
}

.social-btn {
    width: 44px;
    height: 44px;
    background-color: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.sticker-animated {
    position: absolute;
    display: inline-block;
    cursor: grab;
}

/* Base frame defines size */
.sticker-animated img:first-child {
    width: 150px;
    display: block;
    pointer-events: none;
    position: relative;   /* IMPORTANT */
    z-index: 99;
}

/* Hover frame stacked on top */
.sticker-animated img:last-child {
    width: 150px;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}

/* True frame swap */
.sticker-animated:hover img:first-child {
    opacity: 0;
}

.sticker-animated:hover img:last-child {
    opacity: 1;
}

/* Disable animation while dragging */
.sticker-animated.dragging img:first-child {
    opacity: 1;
}

.sticker-animated.dragging img:last-child {
    opacity: 0;
}




.sticker {
    position: absolute;
    transition: opacity 0.5s ease;
    z-index: 99;
    cursor: grab;
    user-select: none;
}

.sticker img {
    width: 150px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* Grow while grabbed */
.sticker.dragging img {
    transform: scale(1.12);
}


/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 40px 40px;
    text-align: center;
}

.footer-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
}

footer p {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    line-height: 1.6;
}

.footer-cta {
    color: #999;
    margin: 25px 0 20px;
    font-size: 13px;
}

.footer-links {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #333;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 11px;
    margin: 0 15px;
    transition: color 0.3s ease;
}

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

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

/* Modifica esto en tu styles.css */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Esta clase se la pondremos con JS */
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fonts-catalogue {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 200px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-visual {
        height: 350px;
    }

    .image-container {
        width: 260px;
        height: 260px;
    }

    .overlap-image {
        width: 160px;
        height: 160px;
    }

    .accent-box {
        width: 220px;
        height: 170px;
        font-size: 48px;
    }

    .section-title {
        font-size: 38px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .gallery-main {
        min-height: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fonts-catalogue {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 40px 30px;
    }

    header, .about-section, .editorial-section, .fonts-section, .posters-section, .branding-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--text-dark);
    color: white;
}

.notebook {
    position: fixed;
    right: -90px;
    bottom: 20%;
    width: 340px;
    z-index: 999;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notebook img {
    width: 100%;
    pointer-events: none;
}

/* active only in fonts section */
.notebook.active {
    opacity: 1;
    pointer-events: auto;
}

.notebook.active:hover {
    transform: translateX(-60px);
}

.cascade-toggle {
    margin-top: 12px;
    padding: 8px 14px;
    border: none;
    background: black;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.cascade-toggle:hover {
    opacity: 0.8;
}

.cascade-preview {
    display: none;
    margin-top: 25px;
    line-height: 1.2;
}

.cascade-line {
    margin: 4px 0;
}

.hello-hover {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.hello-gif {
  width: 120px; /* adjust size */
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hello-hover:hover .hello-gif {
  opacity: 1;
  transform: translateX(0);
}
