/* Global Styles for Atelius Project */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #7E7E7E;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Lilita One', cursive;
    text-transform: lowercase;
}

.font-lilita-one {
    font-family: "Lilita One", sans-serif;
}

.footer-note {
    color: #D9D9D9;
    font-size: 16px;
    line-height: 20px;
}

.leading-6 {
    font-size: 20px;
}

.fontSize-32 {
    font-size: 32px;
}

.marginBottom {
    margin-bottom: 96px !important;
}

.practiceSection-lineHeight {
    line-height: 28px;
}

.fontSize-16 {
    font-size: 16px;
}

.ourWay-lineHeight {
    line-height: 64px;
}

.expedition-lineHeight {
    line-height: 20px;
}

.btn-primary,
.btn-joinus {
    position: relative;
    width: 324px;
    height: 65px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3BA7D9;
    -webkit-mask: url('assets/assets/button-shape.svg') no-repeat center center;
    mask: url('assets/assets/button-shape.svg') no-repeat center center;
    -webkit-mask-size: contain;
    mask-size: contain;
    /* transition: all 0.3s ease; */
}

.btn-primary span {
    position: relative;
    z-index: 2;
    color: #EBE715;
    text-align: center;
    font: normal 400 18px/20px "Lilita One", sans-serif;
    text-transform: uppercase;
    /* transition: all 0.3s ease; */
}

.btn-primary:hover {
    /* transform: scale(1.05); */
    background-color: #9BCC96;
}

.btn-primary:hover span {
    color: #EBE715;
}

.btn-joinus {
    background-color: #EBE715;
}

.btn-joinus span {
    position: relative;
    z-index: 2;
    color: #3BA7D9;
    text-align: center;
    font: normal 400 18px/20px "Lilita One", sans-serif;
    text-transform: uppercase;
}

.btn-joinus:hover {
    background-color: #DFA9C7;
}

.btn-joinus:hover span {
    color: #EBE715;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.header-content {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 85px 160px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-desktop {
    display: flex;
    margin-bottom: -20px;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font: 400 18px/20px 'Lilita One', sans-serif;
    color: #9BCC96;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}


.nav-button {
    position: relative;
    width: 120px;
    height: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EBE715;
    -webkit-mask: url('assets/assets/nav-button-shape.svg') no-repeat center center;
    mask: url('assets/assets/nav-button-shape.svg') no-repeat center center;
    -webkit-mask-size: contain;
    mask-size: contain;
    /* transition: all 0.3s ease; */
}

.nav-button span {
    position: relative;
    z-index: 2;
    color: #3BA7D9;
    text-align: center;
    font: normal 400 18px/20px "Lilita One";
    text-transform: uppercase;
    /* transition: all 0.3s ease; */
}

.nav-button:hover {
    background-color: #3BA7D9;
}

.nav-button:hover span {
    color: #EBE715;
}

/* Mobile Navigation Controls */
.mobile-nav-controls {
    display: none;
    align-items: center;
}

.nav-button-mobile {
    width: 110px;
    height: 44px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    padding-bottom: 0;
    width: 26px;
    height: 44px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #DFAAC7;
    /* Pink color from design */
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger animation when open */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu.open {
    max-height: 500px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    font-family: 'Lilita One', sans-serif;
    font-size: 20px;
    color: #3BA7D9;
    text-decoration: none;
    text-transform: uppercase;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-menu a:hover {
    color: #DFAAC7;
    background-color: rgba(0, 0, 0, 0.02);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.believe-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 282px;
}

/* Footer Styles */
.footer {
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.footer-wave img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-title {
    font-family: 'Lilita One', cursive;
}

.footer-subtitle {
    font-family: 'Montserrat', sans-serif;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    height: auto;
    width: auto;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.footer-nav-link {
    font-family: 'Lilita One', cursive;
    font-size: 32px;
    line-height: 36px;
    text-transform: lowercase;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-nav-link:hover {
    opacity: 0.7;
}

.footer-credits {
    font-family: 'Montserrat', sans-serif;
}

.footer-copyright {
    font-family: 'Montserrat', sans-serif;
}

/* Content Container */
.content-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 160px;
    padding-right: 160px;
}

/* Responsive Breakpoints */
@media (max-width: 1439px) {
    .content-container {
        padding-left: 80px;
        padding-right: 80px;
    }

    .header-content {
        padding: 20px 80px;
    }
}

@media (max-width: 1024px) {

    .content-container,
    .content-container-mobile-tab {
        padding-left: 32px;
        padding-right: 32px;
    }


    .header-content {
        padding: 20px 32px;
    }

    .nav-desktop {
        display: none !important;
    }

    .mobile-nav-controls {
        display: flex;
    }

    /* .mobile-nav-button {
        margin-bottom: -36px;

    } */

    .mobile-menu {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .footer-title {
        font-size: 80px;
        line-height: 80px;
    }

    .footer-subtitle {
        font-size: 20px;
        line-height: 24px;
    }

    .footer-content {
        padding: 100px 32px 60px;
    }

    .marginBottom {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 767px) {

    .marginBottom {
        margin-bottom: 0 !important;
    }

    .headingAlign {
        font-size: 40px;
        line-height: 40px;
    }

    .marginAlign {
        margin-bottom: 0;
    }

    .content-container,
    .content-container-mobile-tab {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-content {
        padding: 28px 16px 20px;
    }

    .logo img {
        height: 32px;
    }

    .footer-title {
        font-size: 56px;
        line-height: 56px;
    }

    .footer-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .footer-content {
        padding: 80px 16px 40px;
    }

    .footer-logo img {
        height: 40px;
    }
}

/* Mobile Menu Active State */
.mobile-menu.active {
    display: flex;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========== SLIDESHOW STYLES ========== */

/* Slideshow Container common styles */
.community-slideshow,
.believe-slideshow {
    position: relative;
    width: 100%;
}

.community-slides,
.believe-slides {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-slide,
.believe-slide {
    flex-shrink: 0;
    width: calc(33.333% - 21.33px);
    /* 3 cards on desktop with gap */
}

/* Slideshow Navigation Buttons */
.community-slideshow button,
.believe-slideshow button {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.community-slideshow:hover button,
.believe-slideshow:hover button {
    opacity: 1;
}

/* Dot Navigation Hover */
.community-dot:hover,
.believe-dot:hover {
    transform: scale(1.3);
}

/* Tablet - 2 cards */
@media (max-width: 1024px) {

    .community-slide,
    .believe-slide {
        width: calc(50% - 16px);
        /* 2 cards on tablet */
    }
}

/* Mobile - 1 card */
@media (max-width: 767px) {

    .community-slideshow,
    .believe-slideshow {
        min-height: 350px;
        touch-action: pan-y pinch-zoom;
        cursor: grab;
    }

    .community-slideshow:active,
    .believe-slideshow:active {
        cursor: grabbing;
    }

    .community-slide,
    .believe-slide {
        width: 100%;
        /* 1 card on mobile */
    }

    .community-slideshow button,
    .believe-slideshow button {
        opacity: 1;
        padding: 12px;
    }

    .community-slideshow button svg,
    .believe-slideshow button svg {
        width: 20px;
        height: 20px;
    }

    /* Smooth touch transitions */
    .community-slides,
    .believe-slides {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Card Blob Component */
.card-blob {
    width: 100%;
    min-height: 500px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 50px 60px 50px;
    transition: transform 0.3s ease;
}

/* .card-blob:hover {
    transform: translateY(-10px);
} */

.card-blob h3 {
    color: #DFAAC7;
    text-align: center;
    font: normal 400 32px/32px 'Lilita One', sans-serif;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.card-blob p {
    color: #7E7E7E;
    text-align: center;
    font: normal 500 16px/20px 'Montserrat', sans-serif;
    max-width: 260px;
    margin: 0 auto;
}

.card-blob-small {
    min-height: 380px;
}

@media (max-width: 767px) {
    .card-blob {
        min-height: 400px;
        padding: 40px 30px;
    }

    .card-blob h3 {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 16px;
    }

    .card-blob p {
        font-size: 14px;
        line-height: 18px;
        max-width: 200px;
    }
}


.nav-item {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin: 0 10px;
}

/* Desktop Layout - Absolute Positioning to match svg design */
@media (min-width: 1024px) {
    .nav-item {
        position: absolute;
        margin: 0;
        display: flex;
        /* Ensure content centers */
    }

    .nav-home {
        width: 225px;
        height: 217px;
        top: -47px;
        left: 266px;
        z-index: 12;
    }

    .nav-joinus {
        width: 246px;
        height: 158px;
        top: -38px;
        left: 533px;
        z-index: 9;
    }

    .nav-ourway {
        width: 307px;
        height: 243px;
        top: 21px;
        left: 102px;
        z-index: 11;
    }

    .nav-summer {
        width: 317px;
        height: 192px;
        top: 77px;
        left: 328px;
        z-index: 12;
    }

    .nav-about {
        width: 235px;
        height: 179px;
        top: 81px;
        left: 594px;
        z-index: 10;
    }

    .nav-extra {
        width: 164px;
        height: 256px;
        top: 0px;
        right: 123px;
        z-index: 8;
    }
}

.nav-mask {
    width: 100%;
    height: 100%;
    background-color: white;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mask URLs */
.mask-home {
    -webkit-mask-image: url('assets/assets/svgs/nav-home-new.svg');
    mask-image: url('assets/assets/svgs/nav-home-new.svg');
}

.mask-about {
    -webkit-mask-image: url('assets/assets/svgs/nav-about-new.svg');
    mask-image: url('assets/assets/svgs/nav-about-new.svg');
}

.mask-ourway {
    -webkit-mask-image: url('assets/assets/svgs/nav-ourway-new.svg');
    mask-image: url('assets/assets/svgs/nav-ourway-new.svg');
}

.mask-summer {
    -webkit-mask-image: url('assets/assets/svgs/nav-summer-new.svg');
    mask-image: url('assets/assets/svgs/nav-summer-new.svg');
}

.mask-joinus {
    -webkit-mask-image: url('assets/assets/svgs/nav-joinus-new.svg');
    mask-image: url('assets/assets/svgs/nav-joinus-new.svg');
}

.mask-extra {
    -webkit-mask-image: url('assets/assets/svgs/nav-extra-new.svg');
    mask-image: url('assets/assets/svgs/nav-extra-new.svg');
}

.nav-item span {
    position: absolute;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-align: left;
    line-height: 24px;
    font-family: 'Lilita One', cursive;
    pointer-events: none;
    /* transition: opacity 0.25s ease, transform 0.25s ease; */
    z-index: 10;
    /* Center visually */
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%) translateY(10px); */
    opacity: 0;
}

.nav-ourway span {
    top: 70%;
    left: 45%;
}

/* Hover Effects (Desktop) */
@media (hover: hover) and (pointer: fine) {
    nav-item:hover .nav-mask {
        transform: translateY(-12px) scale(1.08);
    }

    /*.nav-item:hover .nav-mask.rotate-90 {
        transform: translateY(-12px) scale(1.08) rotate(90deg);
    }

    .nav-item:hover .nav-mask.rotate-180 {
        transform: translateY(-12px) scale(1.08) rotate(180deg);
    }

    .nav-item:hover .nav-mask.rotate-12 {
        transform: translateY(-12px) scale(1.08) rotate(12deg);
    }

    .nav-item:hover .nav-mask.-rotate-90 {
        transform: translateY(-12px) scale(1.08) rotate(-90deg);
    } */

    .nav-item:hover .mask-home {
        background-color: #DFA9C7;
    }

    .nav-item:hover .mask-about {
        background-color: #DFAAC7;
    }

    .nav-item:hover .mask-ourway {
        background-color: #EBE715;
    }

    .nav-item:hover .mask-summer {
        background-color: #EBE715;
    }

    .nav-item:hover .mask-joinus {
        background-color: #9BCC96;
    }

    .nav-item:hover .mask-extra {
        background-color: #9BCC96;
    }

    .nav-item:hover span {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Base state for span on mobile/tablet */
@media (max-width: 1023px) {
    .nav-item span {
        opacity: 1;
        transform: translate(-50%, -50%);
    }


    .nav-home {
        width: 133px;
        height: 91px;
        top: -5%;
        left: 25%;
        z-index: 10;
    }

    .nav-joinus {
        width: 154px;
        height: 51px;
        top: -3%;
        left: 24%;
        z-index: 9;
    }

    .nav-ourway {
        width: 110px;
        height: 152px;
        top: 0%;
        left: -12%;
        z-index: 11;
    }

    .nav-summer {
        width: 132px;
        height: 119px;
        top: 8%;
        left: -14%;
        z-index: 12;
    }

    .nav-about {
        width: 107px;
        height: 125px;
        top: 8%;
        left: -16%;
        z-index: 10;
    }

    .nav-extra {
        width: 56px;
        height: 154px;
        top: -1%;
        right: 20%;
        z-index: 8;
    }

    .mask-home {
        background-color: #DFAAC7;
    }

    .mask-about {
        background-color: #DFAAC7;
    }

    .mask-ourway {
        background-color: #EBE715;
    }

    .mask-summer {
        background-color: #EBE715;
    }

    .mask-joinus {
        background-color: #9BCC96;
    }

    .mask-extra {
        background-color: #9BCC96;
    }
}

/* Vertical writing mode for copyright text */
.writing-mode-vertical {
    writing-mode: sideways-lr;
    text-orientation: mixed;
}

@media (min-width: 1024px) {
    .writing-mode-vertical {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed;
    }
}