/* Font Faces */
@font-face {
    font-family: 'Ibiza';
    src: url('../fonts/ibiza.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Ibiza-Light';
    src: url('../fonts/ibiza-light.ttf') format('truetype');
    font-display: swap;
}

/* Common Styles */
body {
    font-family: 'Ibiza-Light', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: #c4c3ca;
    background-color: #1f2029;
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat-back.svg');
    background-position: center;
    background-repeat: repeat;
    background-size: 4%;
    overflow-x: hidden;
    transition: all 300ms linear;
}
a {
    cursor: pointer;
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

.main-content {
    margin-top: 80px; /* Adjust this value based on your header's height */
}

/* Page-Specific Styles */
.trip-page #landing-text {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
    margin: 0 auto;
}
.trip-page #landing-text p {
    font-family: 'Ibiza-Light', sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
}
.trip-page #landing-text h1,
.trip-page #landing-text h2 {
    font-family: 'Ibiza', sans-serif;
}
.trip-page #landing-text h1 {
    font-size: 48px;
    margin: 10px 0;
}
.trip-page #landing-text h2 {
    font-size: 24px;
    margin: 10px 0;
}
.trip-page #landing-text .enter-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #bfa980;
    color: white;
    text-decoration: none;
    font-family: 'Ibiza', sans-serif;
    font-size: 18px;
    border-radius: 0px;
    transition: background-color 0.3s;
}
.trip-page #landing-text .enter-button:hover {
    background-color: #a68b6d;
}
.trip-page #hero-vid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.trip-page #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Header Styles */
.cd-header {
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    /* Removed top, left, and z-index */
}

.header-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 50px;
    box-sizing: border-box;
    display: flex; /* Enables flex layout */
    justify-content: space-between; /* Distributes space between logo and menu */
    align-items: center; /* Vertically centers the content */
}

.logo-wrap {
    display: flex;
    justify-content: flex-end; /* Aligns logo to the right */
    align-items: center; /* Vertically centers the logo */
}


.logo-wrap a img {
    width: 200px;
}
.nav-but-wrap {
    position: relative;
    display: inline-block;
    float: left;
    padding-left: 15px;
    padding-top: 15px;
    margin-top: 26px;
    transition: all 0.3s ease-out;
}
.menu-icon {
    height: 30px;
    width: 30px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    display: block;
}
.menu-icon__line {
    height: 2px;
    width: 30px;
    display: block;
    background-color: #fff;
    margin-bottom: 7px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.5s ease;
}
.menu-icon__line-left,
.menu-icon__line-right {
    width: 16.5px;
    transition: all 200ms linear;
}
.menu-icon__line-right {
    float: right;
}
.menu-icon:hover .menu-icon__line-left,
.menu-icon:hover .menu-icon__line-right {
    width: 30px;
}

/* Navigation Styles */
.nav {
    position: fixed;
    z-index: 98;
    visibility: hidden;
}
.nav:before,
.nav:after {
    content: "";
    position: fixed;
    top: 20px;
    left: 50px;
    width: 0;
    height: 0;
    background-color: rgba(20, 21, 26, 0.6);
    border-bottom-right-radius: 200%;
    z-index: -1;
    transition: border-radius 0.8s linear, width 0.6s cubic-bezier(0.77, 0, 0.175, 1), height 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
.nav:after {
    background-color: rgba(9, 9, 12, 1);
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat.svg');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 300%;
    transition-delay: 0s;
    box-shadow: 6px 7px 28px 0 rgba(16, 16, 16, 0.3);
}
.nav:before {
    transition-delay: 0.2s;
}
.nav__content {
    position: fixed;
    visibility: hidden;
    top: 90px;
    left: 50px;
    width: 280px;
    text-align: left;
}
.nav__list {
    position: relative;
    padding: 0;
    margin: 0;
    z-index: 2;
    list-style: none;
}
.nav__list-item {
    position: relative;
    display: block;
    opacity: 0;
    text-align: left;
    color: #fff;
    overflow: hidden;
    font-family: 'Ibiza', sans-serif; /* Changed to Ibiza */
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 2px;
    transform: translateX(30px);
    transition: opacity 0.2s ease, transform 0.3s ease;
    margin: 7px 0;
}
.nav__list-item a {
    color: rgba(255, 255, 255, 0.6);
    padding-left: 40px;
    padding: 5px 15px;
    transition: color 0.2s linear;
}
.nav__list-item a:hover {
    color: #bfa980; /* Changed hover color */
}
/*.nav__list-item a:after {
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    width: 5px;
    height: 0;
    opacity: 0;
    background-color: transparent;
    transition: all 200ms linear;*/
}
.nav__list-item a:hover:after {
    height: 100%;
    opacity: 1;
    top: 0;
}
.nav__list-item.active-nav a,
.nav__list-item.active-nav a:after {
    color: #fff;
    height: 100%;
    opacity: 1;
    top: 0;
}
body.nav-active .nav__content {
    visibility: visible;
}
body.nav-active .menu-icon__line {
    background-color: #fff;
    transform: rotate(-45deg);
}
body.nav-active .menu-icon__line-left {
    width: 15px;
    transform: translate(2px, 4px) rotate(45deg);
}
body.nav-active .menu-icon__line-right {
    width: 15px;
    transform: translate(-3px, -3.5px) rotate(45deg);
}
body.nav-active .nav {
    visibility: visible;
}
body.nav-active .nav:before,
body.nav-active .nav:after {
    width: 250px;
    height: 350px;
    border-radius: 15px;
}
body.nav-active .nav:after {
    transition-delay: 0.1s;
}
body.nav-active .nav:before {
    transition-delay: 0s;
}
body.nav-active .nav__list-item {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
body.nav-active .nav__list-item:nth-child(1) { transition-delay: 0.7s; }
body.nav-active .nav__list-item:nth-child(2) { transition-delay: 0.8s; }
body.nav-active .nav__list-item:nth-child(3) { transition-delay: 0.9s; }
body.nav-active .nav__list-item:nth-child(4) { transition-delay: 1s; }
body.nav-active .nav__list-item:nth-child(5) { transition-delay: 1.1s; }
body.nav-active .nav__list-item:nth-child(6) { transition-delay: 1.2s; }

/* Switch Styles */
.switch-wrap {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 10;
    transform: translateY(-50%);
    width: 100%;
    transition: all 500ms linear;
    margin: 0 auto;
    text-align: center;
}
.switch-wrap h1 {
    font-weight: 900;
    font-size: 46px;
    line-height: 1;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    transition: all 300ms linear;
}
@media screen and (max-width: 580px) {
    .switch-wrap h1 {
        font-size: 32px;
    }
}
.switch-wrap p {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1;
    color: #8167a9;
    text-align: center;
    margin-top: 15px;
}
.switch-wrap p span {
    position: relative;
}
.switch-wrap p span:before {
    position: absolute;
    content: '';
    width: 100%;
    height: 2px;
    background-color: #fff;
    left: 0;
    bottom: -4px;
    transition: all 300ms linear;
}
.switch-wrap p span:nth-child(2):before {
    opacity: 0;
}
#switch,
#circle {
    cursor: pointer;
    transition: all 300ms linear;
}
#switch {
    width: 60px;
    height: 8px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid #000;
    border-radius: 27px;
    background: #8167a9;
    position: relative;
    display: inline-block;
}
#circle {
    position: absolute;
    top: -11px;
    left: -13px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: 0 4px 4px rgba(26,53,71,0.25), 0 0 0 1px rgba(26,53,71,0.07);
    background: #fff;
}
.switched {
    border-color: #8167a9 !important;
    background: #000 !important;
}
.switched #circle {
    left: 43px;
    background: #000;
}

/* Light Mode Styles */
body.light {
    background-color: #fff;
}
body.light .cursor,
body.light .cursor2,
body.light .cursor3 {
    mix-blend-mode: normal;
}
body.light .cursor2 {
    border: 2px solid #1f2029;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
body.light .cursor2.hover {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}
body.light .logo-wrap a {
    color: #1f2029;
}
body.light .menu-icon__line {
    background-color: #1f2029;
}
body.light .nav:before {
    background-color: rgba(235, 235, 235, 0.4);
}
body.light .nav:after {
    background-color: rgb(246,239,249);
    box-shadow: 6px 6px 22px rgba(42, 31, 63, 0.1);
}
body.light .nav__list-item a {
    color: rgba(0,0,0,0.6);
}
body.light .nav__list-item a:hover {
    color: #1f2029;
}
body.light .nav__list-item.active-nav a {
    color: #1f2029;
}
body.light .switch-wrap h1 {
    color: #000;
}
body.light .switch-wrap p span:nth-child(2):before {
    opacity: 1;
    background-color: #000;
}
body.light .switch-wrap p span:nth-child(1):before {
    opacity: 0;
}

/* Link to Portfolio */
.link-to-portfolio {
    position: fixed;
    bottom: 40px;
    right: 50px;
    z-index: 200;
    cursor: pointer;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 3px;
    background-position: center center;
    background-size: 65%;
    background-repeat: no-repeat;
    background-image: url('https://assets.codepen.io/1462889/fcy.png');
    box-shadow: 0 0 0 2px rgba(255,255,255,.1);
    transition: opacity 0.2s, border-radius 0.2s, box-shadow 0.2s;
    transition-timing-function: ease-out;
}
.link-to-portfolio:hover {
    opacity: 0.8;
    border-radius: 50%;
    box-shadow: 0 0 0 20px rgba(255,255,255,.1);
}