@font-face {
    font-family: 'Rammetto One';
    src: url('fonts/Rammetto_One/RammettoOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway/Raleway-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Noto Sans';
    src: url('fonts/Noto_Sans/NotoSans-VariableFont_wdth\,wght.ttf') format('truetype');
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem; /* This helps prevent the header from overlapping scrolled content */
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: white;
    color: black;
    margin: 0;
    padding: 0;
}

.hero {
    text-align: center;
    padding: 5rem 1rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 900; /* Black 900 weight */
    font-size: 2.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.2rem;
    margin-top: -1rem;
}

.amp {
    font-style: italic;
    margin: 0 0.2em;
}

.arrow {
    margin-top: 2rem;
    font-size: 2rem;
    animation: bounce 2s infinite;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.projects-wrapper {
    width: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    scroll-margin-top: 2rem; /* This helps with the scroll positioning */
}

.projects-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-sizing: border-box;
}

.projects-container a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none; /* Remove underline from link */
}

.project {
    position: relative;
    width: 30%;
    margin: 1%;
    overflow: hidden;
    max-width: 300px;
}

.project-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.project:hover .project-link {
    opacity: 1;
}

.project img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.project a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
    background-size: cover;
    background-position: center;
}

.project:hover::before {
    opacity: 1 !important;
}

.project:first-child::before {
    background-image: url('/images/dora-sol-2.jpg');
}

.project:nth-child(2)::before {
    background-image: url('/images/ofertar-2.jpg');
}

.project:nth-child(3)::before {
    background-image: url('/images/surfista-2.jpg');
}

.project:nth-child(4)::before {
    background-image: url('/images/fish-planet-2.jpg');
}

.project:nth-child(5)::before {
    background-image: url('/images/vetplanet-2.jpg');
}

.project:nth-child(6)::before {
    background-image: url('/images/monsantopet-2.jpg');
}

.project:nth-child(7)::before {
    background-image: url('/images/illustration-2.jpg');
}

.project:nth-child(8)::before {
    background-image: url('/images/abyssal-ink-2.jpg');
}

.project:nth-child(9)::before {
    background-image: url('/images/fotografia-2.jpg');
}

.footer-links {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    padding: 1rem;
    text-align: center;
}

.footer-links a {
    color: rgb(0, 0, 0);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem; /* Smaller font size */
}

footer p {
    text-align: center;
    color: rgb(0, 0, 0);
    margin-top: 1rem;
    font-size: 0.8rem; /* Smaller font size */
}

.privacy-content {
    max-width: 800px;
    margin: 100px auto;
    padding: 2rem;
    line-height: 1.6;
}

.privacy-content h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.privacy-content .last-updated {
    color: #666;
    margin-bottom: 2rem;
}

.privacy-content .intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.privacy-content section {
    margin-bottom: 2rem;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content a {
    color: #000;
    text-decoration: underline;
}

.privacy-content a:hover {
    opacity: 0.7;
}

.project-page {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
}

.project-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.project-intro h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-intro p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.project-intro .materials-intro {
    font-size: 1.1rem;
    color: #666;
    margin-top: 2rem;
}

.project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.content-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;  /* Reduced from 4rem */
    justify-content: center;
    align-items: center;
}

.text-column {
    background-color: #224f8f;
    color: white;
    border-radius: 10px;
    flex: 1;
    padding: 2rem;
}

.text-column h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5em;
}

.text-column p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.text-column p:last-child {
    margin-bottom: 0;
}

.image-column {
    flex: 1;
    position: relative;
}

.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: scale(0.95);
}

.carousel img.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.carousel-nav {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(238, 255, 2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #224f8f;
}

.carousel-nav {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #224f8f;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: rgb(141, 141, 141);
}

.contact-content {
    max-width: 800px;
    margin: 100px auto;
    padding: 2rem;
}

.contact-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-container label {
    font-weight: bold;
}

.form-container input,
.form-container textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.form-container textarea {
    height: 150px;
    resize: vertical;
}

.form-container button {
    background-color: #224f8f;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #1a3d6d;
}

.response-message {
    text-align: center;
    padding: 2rem;
    font-weight: bold;
}

.illustration-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.illustration-narrow-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.collection {
    margin-bottom: 4rem;
}

.collection h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.collection-description {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
    line-height: 1.6;
    color: #333;
    font-size: 1.1rem;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.gallery-set {
    position: relative;
    margin-bottom: 3rem;
}

.gallery-set h3 {
    position: absolute;
    left: -10px;
    top: -15px;
    color: white !important;
    background: #080808 !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    transform: rotate(-3deg);
    z-index: 4;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: inline-block;
    margin-bottom: 1px;
}

.gallery-set h3:hover {
    transform: rotate(0deg);
}

.manual-carousel {
    position: relative;
    width: 500px;  /* Fixed width */
    height: 500px; /* Default height */
    margin: 2rem auto;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2.5rem;  /* Add space for the rotated title */
}

/* Add specific class for A4 format */
.manual-carousel.a4-format {
    height: 707px; /* Approximately A4 ratio (500 × 1.414) */
}

.image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.manual-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.manual-carousel img.active {
    opacity: 1;
    display: block;
}

.gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 2;
}

.gallery-nav button {
    /* Creates glass-like bevel effect: */
    background: rgba(255, 255, 255, 0.315);  /* Semi-transparent background */
    backdrop-filter: blur(5px);              /* Blur effect behind the button */
    border: 0px solid #ffffff;               /* White border creates edge definition */
    color: #838383;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.gallery-nav button:hover {
    /* Enhances bevel effect on hover: */
    background: rgba(255, 255, 255, 0.5);    /* Increases transparency for more depth */
    transform: scale(1.1);
}

.counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.315);
    color: #838383;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    border: 0px solid #000;
    z-index: 3;
}

.coming-soon {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* Dark Theme Styles */
.dark-theme {
    background-color: #000;
    color: #fff;
}

.project-page.dark {
    background-color: #000;
    color: #fff;
}

.text-column.dark {
    background-color: #111;
    color: #fff;
}

/* Album Section Styles */
.albums-section {
    margin: 2rem 0;
    width: 100%;
}

.albums-section .text-column.dark {
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* Remove duplicate .albums-container styles and merge them */
.albums-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.album {
    width: 300px;
    text-align: center;
    flex-shrink: 0;
}

.album-info {
    padding: 1rem;
}

.album-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    color: #fff;
}

@media (max-width: 768px) {
    .albums-section .text-column.dark {
        width: 90%;
        margin: 0 auto 2rem auto;
    }

    .albums-container {
        gap: 2rem;
    }

    .album {
        width: 280px;
    }

    .project {
        width: 45%;
        margin: 1rem;
    }

    .gallery-nav button {
        display: none; /* Hide navigation buttons on mobile */
    }

    .counter {
        bottom: 20px; /* Keep counter at bottom on mobile */
        top: auto;    /* Reset any top positioning */
    }

    .hero {
        padding: 2rem 1rem;  /* Reduce padding on mobile */
        justify-content: flex-start;  /* Start content from top */
        padding-top: 15vh;  /* Push content down ~15% of viewport height */
    }

    .about-container {
        flex-direction: column;
        gap: 2rem;
        margin: 20px auto; /* Reduced from 80px to 20px */
        padding: 1rem;
    }

    .about-photo {
        flex: 0 0 auto;
        max-width: 250px;
        margin: 0 auto;
    }

    .about-links {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-button,
    .contact-button {
        text-align: center;
    }
}

.album img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.album-info p {
    color: #999;
}

.album a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.album a:hover {
    transform: scale(1.03);
}

.listen-on {
    display: inline-block;
    color: #1DB954;  /* Spotify green */
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.image-column img.full-width {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Video Section Styles */
.videos-section {
    margin: 2rem 0;  /* Reduced from 4rem */
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin: 2rem 0;  /* Adjusted for consistency */
    max-width: 800px;
    margin: 0 auto;
}

.video-grid .video-wrapper {
    position: relative;
    padding-bottom: 177.78%; /* 9:16 Aspect Ratio for vertical video */
    width: 100%;
    max-width: 315px; /* typical story width */
    margin: 0 auto;
}

.feature-video .video-wrapper {
    padding-bottom: 56.25%; /* Keep 16:9 for main video */
    max-width: 100%;
}

.video-container video,
.feature-video video {
    width: 100%;
    border-radius: 8px;
}

.video-container video {
    max-width: 100%;
    max-height: 400px;
    width: auto;
}

.feature-video {
    margin-top: 2rem;  /* Reduced from 4rem */
}

.feature-video h3 {
    margin-bottom: 2rem;
}

.feature-video video {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    margin: 0 auto;
    display: block;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-container .text-column,
.feature-video .text-column {
    margin-bottom: 2rem;
    background: rgba(17, 17, 17, 0.8);
    border-radius: 8px;
    padding: 1.5rem;
}

.video-container .text-column p,
.feature-video .text-column p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Logo Section Styles */
.logo-section {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.logo-section img {
    max-width: 400px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .project {
        width: 45%;
    }
    
    .content-row {
        flex-direction: column;
        align-items: center;
    }
    
    .text-column, .image-column {
        width: 80%;
        max-width: 600px;
        margin: 0 auto;
    }

    .image-column {
        margin-top: 2rem;
    }

    .illustration-narrow-wrapper {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .manual-carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        margin: 2rem auto;
    }

    .manual-carousel.a4-format {
        aspect-ratio: 1/1.414;
        height: auto;
    }

    .manual-carousel img {
        object-fit: contain;
        max-height: 100%;
        width: 100%;
    }

    .gallery-set h3 {
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
        left: 0;
    }

    .planet-nav-arrows {
        display: none !important;  /* Force hide arrows */
    }
    
    .planet-carousel .carousel-nav {
        padding: 0;  /* Remove padding since arrows are hidden */
    }

    .planet-carousel {
        margin-bottom: 2rem;  /* Add some spacing below carousel */
    }
}

@media (max-width: 480px) {
    .project {
        width: calc(100% - 2rem);
        margin: 1rem;
    }

    .manual-carousel {
        margin: 2rem 0.5rem;
    }
}

.back-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #333;
}

.planet-carousel {
    width: 100%;
    overflow: visible; /* Change from hidden to visible to allow content outside */
    position: relative;
    background: #00000000;
    border-radius: 8px;
    aspect-ratio: 1/1;  /* Make it square */
    max-width: 500px;   /* Limit maximum width */
    margin: 0 auto;
}

.planet-carousel .image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden; /* Add overflow hidden here instead */
    border-radius: 8px;
}

.planet-carousel img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: contain;
    display: none;
    cursor: pointer;
}

.planet-carousel img.active {
    opacity: 1;
    display: block;
}

.planet-carousel .carousel-nav {
    position: relative; /* Change from absolute to relative */
    bottom: auto; /* Remove absolute positioning */
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(2, 2, 2, 0.212);
    padding: 0.5rem;
    border-radius: 20px;
    width: fit-content;
    margin: 1rem auto 0; /* Add top margin to create space */
    z-index: 2;
}

.planet-nav-arrows {
    display: none !important; /* Hide arrows completely */
}

.planet-carousel .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(238, 255, 2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.planet-carousel .carousel-dot:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.5);
}

.planet-carousel .carousel-dot.active {
    background: #224f8f;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

@media (max-width: 768px) {
    .planet-carousel {
        aspect-ratio: 1/1;  /* Keep it square on mobile */
        width: 90%;        /* Take up most of the width */
    }
}

/* About Page Styles */
.about-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 2rem;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-photo {
    flex: 0 0 300px;
}

.photo-placeholder {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    flex: 1;
}

.about-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-text {
    margin-bottom: 3rem;
    line-height: 1.6;
}

.about-links {
    display: flex;
    gap: 1rem;
}

.resume-button,
.contact-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.resume-button {
    background-color: #224f8f;
    color: white;
}

.contact-button {
    background-color: #000;
    color: white;
}

.resume-button:hover,
.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 2rem;
        margin: 20px auto; /* Reduced from 80px to 20px */
        padding: 1rem;
    }

    .about-photo {
        flex: 0 0 auto;
        max-width: 250px;
        margin: 0 auto;
    }

    .about-links {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-button,
    .contact-button {
        text-align: center;
    }
}
