/* ==========================================================================
General, navbar, footer
   ========================================================================== */

:root {
    --main-color: #577a82;
    --text: #222222;
    --primary-colour: #a7ba93;
    --secondary-color: #b2d9e0;
    --sec-color: #dec9b7;
}

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

h1, h2, h3, h4 {
    font-family: 'Bogart', sans-serif;
}


body {
    background-color: rgb(236, 236, 236);
    font-family: 'Agenda';
}

section {
    padding-bottom: 80px;
}

/*navbar*/
.navbar {
    padding: 20px 0;
    background-color: #577a82;
}

.nav-link {
    color: white !important;
    font-size: 20px;
    text-decoration: none !important;
}

.nav-link:hover {
    color: var(--sec-color) !important;
}

.logo {
    width: auto;
    height: 50px;
    transition: all 0.3s ease;
}

.custom-navbar {
    background-color: #577a82 !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: 60px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.offcanvas,
.offcanvas-top {
    background-color: #577a82 !important;
}

.offcanvas-close-btn {
    display: none;
}


@media (min-width: 1200px) {
    .custom-section {
        gap: 120px;
    }
}

@media (min-width: 750px) {
    .custom-navbar .container-fluid {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .logo {
        height: 60px;
        margin-bottom: 10px;
    }

    .custom-section {
        display: flex !important;
        flex-direction: row !important;
        gap: 50px;
    }
}

@media(max-width:749px) {
    .custom-navbar .container-fluid {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }

    .logo {
        height: 35px;
    }

    .offcanvas {
        background-color: #577a82 !important;
        height: 100vh !important;
    }

    .custom-section {
        flex-direction: column !important;
        align-items: center;
        gap: 30px;
        margin-top: 20%;
    }

    .offcanvas .nav-link {
        font-size: 28px;
        text-align: center;
        padding: 10px 0;
    }

    .offcanvas-close-btn {
        display: flex;
        justify-content: center;
    }

    .offcanvas-close-btn button {
        background: transparent;
        border: 2px solid white;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .offcanvas-close-btn button:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .offcanvas-close-btn button svg {
        width: 20px;
        height: 20px;
        stroke: white;
    }

    .navbar-nav li {
        font-size: 25px;
        font-weight: 500;
        font-family: 'Bogart', 'Sans-serif';
    }

    .offcanvas-top {
        transition: transform 0.4s ease, opacity 0.4s ease !important;
        opacity: 1;
    }

    .offcanvas-top:not(.show) {
        opacity: 0;
        transform: translateY(-100%) !important;
    }
}

/*Footer*/
footer {
    background-color: rgb(86, 123, 129);
    color: #fff;
    padding: 0.5em 0 0.5em 0;

}

footer a {
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--sec-color) !important;
}

.logoimg {
    max-width: 100px;
    height: auto;
}

.contact a {
    color: #caccd0;
}

.contact a:hover {
    text-decoration: underline;
}

.linkfoot a {
    color: white;
}

.linkfoot a:hover {
    color: var(--sec-color);
}

.linkfoot li {
    margin-bottom: 1.2em;
}

.sociallogos img {
    transition: transform 0.3s ease;
}

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

.socialfoot {
    gap: 80px;
}

.last {
    margin-top: 1.5em;
}

@media(max-width:750px) {
    footer .col-12 {
        text-align: center !important;
    }

    footer .contact,
    footer .socialfoot,
    footer .logofoot {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer.sociallogos {
        justify-content: center;
        margin-top: 0 !important;
    }

    footer .linkfoot ul {
        align-items: center;
    }

    footer .col-md-6.d-md-flex {
        justify-content: center !important;
        text-align: center !important;
    }

    footer .linkfoot {
        text-align: center;
    }

    footer .socialfoot{
        gap:10px !important;
    }
}

/* ==========================================================================
Home Page
   ========================================================================== */

/*hero section*/
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 10%;
    background-color: var(--secondary-color);
    min-height: 40vh;
}

.herocontent {
    flex: 1;
    max-width: 50%;
}

.herocontent h1 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.herocontent p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

@media (max-width: 750px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }
}

.button-primary {
    background-color: var(--sec-color);
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: #422800;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
    padding: 0 18px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-primary:hover {
    background-color: #fff;
}

.button-primary:active {
    box-shadow: #422800 2px 2px 0 0;
    transform: translate(2px, 2px);
}

@media (min-width: 750px) {
    .button-primary {
        min-width: 120px;
        padding: 0 25px;
    }
}


/*ABOUT ME*/
.full-bg {
    background-color: #dad1c3;
    width: 100%;
    overflow-x: hidden;
}

.photo-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-cont {
    position: relative;
    width: 100%;
    height: 100%;
}

.intro {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text)
}

.polaroid {
    position: absolute;
    background: white;
    padding: 10px 10px 80px 10px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-back {
    width: 60%;
    height: 65%;
    top: 10%;
    left: 5%;
    z-index: 1;
    transform: rotate(-12deg);
}

.polaroid-front {
    width: 65%;
    height: 70%;
    top: 5%;
    left: 5%;
    z-index: 2;
    transform: rotate(8deg);
}

@media (max-width: 750px) {
    .photo-wrap {
        height: 350px;
        max-width: 320px;
        margin: 0 auto;
    }

    #about-me h3 {
        font-size: 1.8rem;
    }

    .photo-cont {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .polaroid-back {
        left: 50%;
        transform: translateX(-60%) rotate(-12deg);
    }

    .polaroid-front {
        left: 50%;
        transform: translateX(-40%) rotate(8deg);
    }

    .text-column {
        padding-left: 1rem !important;
    }
}


/*accordion*/
#accordionFlushExample {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

#accordionFlushExample .accordion-item:nth-child(1) .accordion-button.collapsed,
#accordionFlushExample .accordion-item:nth-child(3) .accordion-button.collapsed {
    background-color: #bebebe !important;
    color: var(--text);
}

#accordionFlushExample .accordion-item:nth-child(2) .accordion-button.collapsed,
#accordionFlushExample .accordion-item:nth-child(4) .accordion-button.collapsed {
    background-color: var(--main-color) !important;
    color: white;
}

.accordion-button:not(.collapsed) {
    background-color: var(--secondary-color) !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    border-color: rgba(0, 0, 0, .125) !important;
    box-shadow: none !important;
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
}

.description {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.accordion-body {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 20px;
}

.accordion-body .description {
    width: 100%;
    text-align: left;
    align-self: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.button {
    background-color: var(--primary-colour);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    border-radius: 10px;
}

/*Best projects*/
.best-projects {
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 20px;
    position: relative;
}

.project-card {
    display: flex !important;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 25px;
    padding: 15px 25px;
    gap: 20px;
}

.project-info {
    flex: 1;
    text-align: left;
    margin: 10px;
}

.project-img {
    flex: 1;
}

.project-img img {
    width: 100%;
    border-radius: 10px;
    display: block;
    height: auto;
}

.swiper {
    width: 100%;
    height: auto;
    position: relative;
    padding: 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text) !important;
    z-index: 100 !important;
    width: 25px !important;
    height: 25px !important;

}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 10px !important;
}

.swiper-button-prev {
    left: -20px;
}

.swiper-button-next {
    right: -20px;
}

@media(max-width: 1200px) {
    .best-projects {
        margin: 20px 15px;
        padding: 0;
    }

    .project-card {
        padding: 20px;
        gap: 15px;
    }

    .project-img img {
        max-width: 90%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
}

@media(max-width: 750px) {
    .best-projects {
        margin: 20px 15px;
        padding: 0;
    }

    .project-card {
        flex-direction: column-reverse;
        align-items: center;
        padding: 10px;
        gap: 15px;
    }

    .project-info {
        width: 100%;
        text-align: left;
    }

    .project-img {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/*CONTACT*/
.contact-box {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 !important;
}

.contact-container {
    background-color: #a7ba93;
    width: 100%;
}

.button-two {
background: var(--main-color);
    color: white;
    padding: 12px 28px;
    font-family: 'agenda', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
}

.button-two:hover{
    background: var(--sec-color);
    color: var(--text);
    text-decoration: none;

}

/* ==========================================================================
    Content Creation
   ========================================================================== */
/*Word Carousel*/
.word-carousel {
    overflow: hidden;
    white-space: nowrap;
    background-color: #eddfd0;
    padding: 14px 0;
    width: 100%;
}

.word-carousel .track {
    display: inline-flex;
    gap: 0;
    animation: marquee 22s linear infinite;
}

.word-carousel .word {
    display: inline-block;
    color: var(--main-color);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 28px;
}

.word-carousel .separator {
    display: inline-block;
    color: #c9b99a;
    font-size: 1rem;
    padding: 0 4px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/*Swiper mobile slider*/
.video-swiper {
    display: none !important;
    width: 100%;
    padding: 0 0 30px;
    position: relative;
}

.video-swiper .swiper-slide {
    display: flex;
    justify-content: center;

}

.video-swiper .swiper-button-next,
.video-swiper .swiper-button-prev {
    color: var(--main-color);
}

.video-swiper .swiper-pagination-bullet-active {
    background: var(--main-color, --text);
}

.video-swiper .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 20px;
}

@media (max-width: 750px) {
    .video-grid {
        display: none !important;
    }

    .video-swiper {
        display: block !important;
    }
}

/*Wave separator*/
.video-section {
    padding: 60px 0 0;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/*TikTok style video*/
.video-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 24px 60px;
}

.video-reproducer {
    position: relative;
    width: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.video-reproducer video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #222;
}

/*wave design*/
.wave-container {
    display: block;
    width: 100%;
    line-height: 0;
    margin: 0;
    overflow: hidden;
}

.wave-container svg {
    display: block;
    width: 100%;
}

.section-1, .section-4 {
    background-color: #e5eeda;
}

.section-2, .section-5 {
    background-color: #d2eff4;
}

.section-3, .section-6 {
    background-color: #f3ebde;
}

/*Why Fed*/
#why-fed {
    background: white;
    padding: 80px 0
}

#why-fed h2 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

#why-fed p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Separación entre contact-box y footer */
.contact-box {
    margin-bottom: 60px;
}

/* ==========================================================================
Photography
   ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 24px 60px;
    margin: 0 auto;
    max-width: 1200px;
}

.photo {
    overflow: hidden;
    cursor: pointer;
}

.photo img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease, opacity 0.3s ease;
    object-fit: cover;
    display: block;
}

.photo:hover img {
    transform: scale(1.03);
    opacity: 0.9;
}

@media (max-width: 1029px) and (min-width: 750px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 749px) {
    .gallery {
        grid-template-columns: 1fr;
        padding: 0 16px 40px;
    }
}

/*Editing*/
.editing-section {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-section {
    padding: 40px 24px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.edit-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.edit-item {
    overflow: hidden;
    display: block;
}

.edit-item.landscape {
    grid-column: span 2;
}

.edit-item.portrait {
    grid-column: span 1;
}

img-comparison-slider {
    --divider-width: 2px;
    --divider-color: #fff;
    --default-handle-color: #fff;
    width: 100%;
    height: 550px;
    display: block;
}

img-comparison-slider img,
img-comparison-slider picture {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1029px) and (min-width: 750px) {
    .edit-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .edit-item.landscape {
        grid-column: span 2;
    }

    .edit-item.portrait {
        grid-column: span 1;
    }

    img-comparison-slider,
    img-comparison-slider img,
    img-comparison-slider picture {
        height: 450px;
    }
}

@media (max-width: 749px) {
    .edit-gallery {
        grid-template-columns: 1fr;
    }

    .edit-item.landscape,
    .edit-item.portrait {
        grid-column: span 1;
    }

    img-comparison-slider {
        height: 550px;
    }

    img-comparison-slider img,
    img-comparison-slider picture {
        height: 550px;
    }
}

/* ==========================================================================
Gallery Wall
   ========================================================================== */
.gallery-extend {
    background-color: #eceae6;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.gallery-wall {
    height: 1200px;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.item {
    position: absolute;
    background: #fff;
    padding: 20px 10px 40px;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.10);
}

.item:hover {
    z-index: 10;
    transform: scale(1.03) rotate(0deg) !important;
    box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.18);
}

.item figcaption {
    margin-top: 10px;
    line-height: 1.5;
}

.item figcaption .date {
    font-size: 0.7rem;
}

.item picture,
.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-1 {
    width: 400px;
    height: 250px;
    top: 20px;
    left: 0;
    transform: rotate(-2deg);
}

.item-2 {
    width: 280px;
    height: 370px;
    top: 60px;
    left: 500px;
    transform: rotate(1.5deg);
}

.item-3 {
    width: 290px;
    height: 250px;
    top: 350px;
    left: 860px;
    transform: rotate(-2deg);
}

.item-4 {
    width: 270px;
    height: 590px;
    top: 500px;
    left: 30px;
    transform: rotate(2deg);
}

.item-5 {
    width: 350px;
    height: 270px;
    top: 680px;
    left: 420px;
    transform: rotate(-1.5deg);
}


@media(max-width:1199px) and (min-width:750px) {
    .gallery-wall {
        height: 1000px;
    }

    .item-1 {
        width: 300px;
        height: 190px;
        top: 15px;
        left: 80px;
    }

    .item-2 {
        width: 210px;
        height: 280px;
        top: 100px;
        left: 480px;
    }

    .item-3 {
        width: 220px;
        height: 190px;
        top: 300px;
        left: 50px;
    }

    .item-4 {
        width: 200px;
        height: 440px;
        top: 600px;
        left: 40px;
    }

    .item-5 {
        width: 320px;
        height: 250px;
        top: 500px;
        left: 400px;
    }
}

@media (max-width: 749px) {
    .gallery-extend {
        padding: 40px 20px;
    }

    .gallery-wall {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .item {
        position: static;
        transform: none !important;
        width: 85% !important;
        height: auto !important;
    }
}

/* ==========================================================================
Editorial Design
   ========================================================================== */
.magazine-sec{
    background-color: #eceae6;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.magazine-cont{
    display: flex;
    flex-direction: column;
    align-items:center;
    gap:30px;
}

#magazine{
    width: 600px;
    height: 800px;
    position: relative;
    overflow: hidden;
}

#magazine .page{
    background: #eceae6;
    overflow: hidden;
}

#magazine .page img{
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    display: block;
    object-fit: cover;
}

.magazine-button{
    display: flex;
    align-items: center;
    gap:24px;
}

.mag-btn {
    background: var(--main-color);
    padding: 8px 20px;
    font-family: 'agenda', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    color:white;
    border: none;
    border-radius: 6px;
}

#page-counter {
    font-family: 'agenda', sans-serif;
    font-size: 0.85rem;
    color: #555;
    min-width: 60px;
    text-align: center;
}

.mag-btn:hover{
    background: var(--primary-colour);
    color: white;
}

@media (max-width: 1199px) and (min-width: 750px) {
    #magazine {
        width: 450px;
        height: 600px;
    }

    .magazine-cont{
        height: auto;
    }
}

@media (max-width: 749px) {
    .magazine-sec {
        padding: 40px 16px;
    }

    #magazine {
        width: 300px;
        height: 400px;
        position: relative;
        overflow: hidden;
    }

    #magazine .page {
        display: block;
        width: 300px;
        height: 400px;
    }

    #magazine .page img {
        width: 300px;
        height: 400px;
        object-fit: cover;
    }
}

/* ==========================================================================
Editorial Design
   ========================================================================== */
.form-sec{
    padding: 60px 40px 80px;
    display: flex;
    justify-content: center;
}

.form-cont{
    display: flex;
    flex-direction: column;
    gap:30px;
    max-width: 650px;
    width: 100%;
}

.form-text {
    font-size: 18px !important;
    line-height: 1.7;
    color: var(--text);
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-ques label {
    font-family: 'agenda', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.form-ques {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-ques input,
.form-ques textarea {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #999;
    padding: 10px 0;
    font-family: 'agenda', sans-serif;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
    resize: none;
}

.form-ques input::placeholder,
.form-ques textarea::placeholder {
    color: #bbb;
}

.form-ques input:focus,
.form-ques textarea:focus {
    border-bottom-color: var(--primary-colour);
}

.contact-form .mag-btn {
    align-self: flex-start;
    margin-top: 8px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}