/** || Main Navigation */

nav {
    display: flex;
    justify-content: center;
    position: absolute;
    z-index: 10;
    width: 100%;
    padding: 0 50px;
}

.nav-inner {
    justify-content: space-between;
    align-items: center;
    background-color: var(--global-color-white);
    padding: 12px 50px;
    border-radius: 80px;
    margin-top: 30px;
    box-shadow: 0px 10px 45px 0px rgba(0, 0, 0, 0.2);
}

nav .logo-container img {
    width: 400px;
    height: auto;
    transition: all 300ms ease-in-out;
}

nav ul {
    display: flex;
    width: 75%;
    justify-content: flex-end;
    gap: 35px;
    transition: all 200ms ease-in-out;
}

nav ul li {
    list-style: none;
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: uppercase;
}

nav ul li a {
    color: var(--global-color-primary);
    cursor: pointer;
    transition: color 250ms ease-in-out
}

nav ul li a:hover
nav ul li a:focus-visible {
    color: var(--global-color-secondary);
}

nav .nav-inner .hamburger-menu {
    display: none;
    width: 50%;
    justify-content: flex-end;
}

header {
    position: fixed;
    top: 0;
    z-index: 99;
    width: 100%;
}

header.fixed-header .logo-container img {
    width: 300px;
}

/*? || Mobile media query for navbar and nav items */

@media only screen and ( max-width: 767px ) {
    nav {
        padding: 0;
    }

    nav .nav-inner {
        width: 100%;
        margin-top: 0;
        border-radius: 0;
    }
}

@media only screen and ( max-width: 680px ) {
    nav .nav-inner {
        padding: 12px 30px;
    }

    nav ul {
        gap: 25px;
    }

    nav ul li {
        font-size: 17px;
    }
}

@media only screen and ( max-width: 600px ) {
    nav .nav-inner {
        padding: 12px 20px;
        background-color: rgba(255, 255, 255, 0);
        box-shadow: none;
    }

    nav .logo-container img {
        width: 500px;
    }

    nav .nav-inner .hamburger-menu {
        display: flex;
    }

    nav .nav-inner ul {
        display: none;
    }
}


/** || Hero Section */

.hero-container {
    height: 100vh;
    align-items: center;
    flex-direction: column;
    background-image: url('../assets/images/hero-background-image.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    padding: 100px 50px 0px;
}

.hero-container:before {
    content: '';
    pointer-events: none;
    display: inline-block;
    position: absolute;
    background: linear-gradient(90deg, rgba(85,91,110,0.8) 0%, rgba(85,91,110,0.8) 30%, rgba(85,91,110,0.4) 100%);
    width: 100%;
    height: 100%;
    top: 0;
}

.hero-inner {
    align-items: center;
    flex-direction: column;
    z-index: 1;
}

.hero-container .hero-inner h1 {
    color: var(--global-color-white);
    text-align: center;
}

.hero-container .hero-inner p:not(.timer-end) {
    color: var(--global-color-white);
    font-size: 32px;
    line-height: 1.3;
    font-family: 'Lora', serif;
    margin-top: 25px;
}

.timer-container {
    max-width: 850px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 20px;
    margin-top: 60px;
}

.hero-inner.countdown-end .timer-container {
    display: none;
}

.timer-unit {
    text-align: center;
}

.hero-container .hero-inner .timer-unit .number {
    color: var(--global-color-accent);
    font-size: 78px;
    line-height: 1;
}

.hero-container .hero-inner .timer-unit .unit-short {
    display: none;
}

.timer-end {
    font-size: 3rem;
    color: var(--global-color-white);
    letter-spacing: 1px;
    margin-top: 40px;
    display: none;
}

.hero-inner.countdown-end .timer-end {
    display: block;
}

.hero-inner .rsvp-btn {
    padding: 13px 40px;
    margin-top: 40px;
    border: 2px solid var(--global-color-accent);
    color: var(--global-color-accent);
    font-weight: 500;
    transition: all 300ms ease-in-out;
}

.hero-inner .rsvp-btn:hover,
.hero-inner .rsvp-btn:focus-visible {
    color: var(--global-color-white);
    background-color: var(--global-color-accent);
    outline: none;
}

.hero-inner .rsvp-btn i {
    margin-left: 10px;
    transition: transform 200ms ease-in-out;
}

.hero-inner .rsvp-btn:hover i,
.hero-inner .rsvp-btn:focus-visible i {
    transform: translateX(8px);
}

/*? || Media queries for hero section */

@media only screen and (max-width: 1024px) {
    .hero-container {
        padding: 40px 30px 0;
    }

    .hero-container .hero-inner p {
        font-size: 28px;
        margin-top: 20px;
    }

    .timer-container {
        margin-top: 45px;
    }

    .hero-container .hero-inner .timer-unit .number {
        font-size: 65px;
    }
}

@media only screen and (max-width: 767px) {
    .hero-container {
        padding: 20px 20px 0px;
    }

    .hero-container .hero-inner p {
        font-size: 25px;
        margin-top: 10px;
    }

    .timer-container {
        margin-top: 30px;
    }

    .hero-container .hero-inner .timer-unit .number {
        font-size: 54px;
    }
}

@media only screen and (max-width: 540px) {
    .hero-container .hero-inner .timer-unit .number {
        font-size: 40px;
    }

    .hero-container .hero-inner .timer-unit .unit {
        display: none;
    }

    .hero-container .hero-inner .timer-unit .unit-short {
        display: block;
    }
}


/** || Section 1 - See Accomodation */

.accomodation-wrapper {
    position: relative;
}

.accomodation-wrapper:before {
    content: '';
    display: block;
    pointer-events: none;

    background-image: url('../assets/graphics\ &\ icons/background-palmtree.svg');
    background-repeat: no-repeat;
    opacity: 0.5;

    width: 800px;
    height: 1000px;

    position: absolute;
    top: 0;
    left: -200px;
    z-index: -1;

    transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.accomodation-section {
    padding: 150px 50px;
    gap: 40px;
    position: relative;
}

.accomodation-content {
    flex-direction: column;
    gap: 20px;
}

.accomodation-content .accomodation-address {
    color: var(--global-color-secondary);
    font-size: 23px;
    margin-top: 15px;
}

.accomodation-section p:nth-of-type(2) {
    color: var(--global-color-primary);
}

.accomodation-section .accomodation-buttons {
    margin-top: 40px;
    gap: 20px;
    justify-content: start;
}

.accomodation-section .accomodation-buttons a {
    color: var(--global-color-secondary);
    font-weight: 500;
    border: 2px solid var(--global-color-secondary);
    padding: 12px 20px;
    transition: all 300ms ease-in-out
}

.accomodation-section .accomodation-buttons .accom-btn:hover,
.accomodation-section .accomodation-buttons .accom-btn:focus-visible {
    color: var(--global-color-white);
    border-color: var(--global-color-accent);
    background-color: var(--global-color-accent);
    outline: none;
}

.accomodation-section .accomodation-buttons .rsvp-btn:hover,
.accomodation-section .accomodation-buttons .rsvp-btn:focus-visible {
    color: var(--global-color-white);
    background-color: var(--global-color-secondary);
    outline: none;
}

.accomodation-section .accomodation-buttons a i {
    margin-left: 10px;
    transition: transform 200ms ease-in-out;
}

.accomodation-section .accomodation-buttons .rsvp-btn:hover i,
.accomodation-section .accomodation-buttons .rsvp-btn:focus-visible i{
    transform: translateX(4px);
}

.accomodation-section .accomodation-image-wrapper {
    --border-radius: 20px;
    border-radius: var(--border-radius);
    background-image: url('../assets/images/accomodation-feature-img.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 75% 50%;
    min-height: 400px;
    position: relative;
}

.accomodation-section .accomodation-image-wrapper::before {
    content: '';
    display: block;
    position: absolute;
    top: -20px;
    right: -30px;
    width: 100%;
    height: 100%;
    transform: rotate(2deg);
    background-color: var(--global-color-accent);
    border-radius: var(--border-radius);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

/*? || Media queries for accomodation section */

@media only screen and (max-width: 1024px) {
    .accomodation-wrapper:before {
        width: 700px;
        height: 875px;
    }

    .accomodation-section {
        padding: 80px 30px;
    }

    .accomodation-content .accomodation-address {
        font-size: 21px;
        margin-top: 13px;
    }

    .accomodation-section .accomodation-buttons {
        flex-direction: column;
        width: 275px;
        text-align: center;
        margin-top: 30px;
    }

    .accomodation-section .accomodation-image-wrapper::before {
        right: -15px;
    }
}

@media only screen and (max-width: 767px) {
    .accomodation-wrapper {
        overflow-x: hidden;
    }

    .accomodation-wrapper:before {
        width: 600px;
        height: 750px;
        top: 0px;
        left: -100px;
    }

    .accomodation-section {
        flex-direction: column;
        padding: 60px 20px;
        gap: 60px;
    }

    .accomodation-content .accomodation-address {
        font-size: 19px;
        margin-top: 11px;
    }

    .accomodation-section .accomodation-buttons {
        flex-direction: row;
        width: auto;
        text-align: left;
        margin-top: 20px;
    }

    .accomodation-section .accomodation-image-wrapper::before {
        top: unset;
        right: -10px;
        bottom: -20px;
        transform: rotate(-2deg);
    }
}

@media only screen and (max-width: 450px) {
    .accomodation-section .accomodation-buttons {
        flex-direction: column;
        text-align: center;
    }
}


/** || Section 2 - Gallery Section */

.gallery-inner {
    flex-direction: column;
    padding: 0 50px 150px;
    gap: 50px;
}

.gallery-content {
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.gallery-content p {
    color: var(--global-color-primary);
}

.gallery-content a {
    align-self: flex-start;
    color: var(--global-color-secondary);
    font-weight: 500;
    border: 2px solid var(--global-color-secondary);
    padding: 12px 30px;
    margin-bottom: 20px;
    transition: all 300ms ease-in-out
}

.gallery-content a:hover,
.gallery-content a:focus-visible {
    color: var(--global-color-white);
    border-color: var(--global-color-accent);
    background-color: var(--global-color-accent);
    outline: none;
}

.gallery-content i {
    margin-left: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 10px;
    position: relative;
}

.gallery-grid:after {
    content: '';
    display: block;
    pointer-events: none;
    position: absolute;
    bottom: 30px;
    right: 20px;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-color: var(--global-color-accent);
    border-radius: 20px;
    opacity: 0.4;
    transform: rotate(-1.5deg);
}

.gallery-grid img {
    object-fit: cover;
    border-radius: 10px;
}

.gallery-grid .container:nth-of-type(3) img {
    object-position: top center;
}

.gallery-grid .container:nth-of-type(1),
.gallery-grid .container:nth-of-type(2) {
    grid-column: 2 / 4;
    max-height: 300px;
}

.gallery-grid .container:nth-of-type(3) {
    grid-column: 1 / 3;
    max-height: 300px;
}

.gallery-grid .container:nth-of-type(4) {
    grid-row: 1 / 3;
}

/*? || Media queries for gallery section */

@media only screen and (max-width: 1024px) {
    .gallery-inner {
        padding: 80px 30px 80px;
    }

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

    .gallery-grid:after {
        bottom: 25px;
        right: 15px;
        transform: rotate(-1.2deg);
    }

    .gallery-grid .container:nth-of-type(1),
    .gallery-grid .container:nth-of-type(2) {
        grid-column: 2 / 3;
        max-height: 400px;
    }

    .gallery-grid .container:nth-of-type(3) {
        grid-column: 1 / 2;
        max-height: 400px;
    }
}

@media only screen and (max-width: 767px) {
    .gallery-inner {
        padding: 60px 20px 80px;
    }

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

    .gallery-grid:after {
        bottom: 20px;
        left: 0;
        transform: rotate(1deg);
    }

    .gallery-grid .container:nth-of-type(1),
    .gallery-grid .container:nth-of-type(2),
    .gallery-grid .container:nth-of-type(3),
    .gallery-grid .container:nth-of-type(4) {
        grid-column: auto;
        grid-row: auto;
        max-height: none;
    }
}

.form-inner {
    padding: 0 50px 100px 50px;
}
