@charset "utf-8";

/* ============================================
   ERGONOMICS ENGINEERED - CUSTOM STYLES
   Brand Colors:
   - Dark Navy: #0a1628
   - Gunmetal: #1a2332
   - Cyan Accent: #00d4ff
   - White: #ffffff
   ============================================ */

/* ----- TRADEMARK SYMBOL ----- */
.tm {
    font-size: 0.5em;
    vertical-align: super;
    opacity: 0.7;
}

/* ----- CYAN COLOR THEME ----- */
.grax_tm_settings .colors li a.cyan{background-color: #00d4ff;}

.grax_tm_all_wrap[data-color="cyan"] .grax_tm_topbar .menu ul li.current a{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_topbar .menu ul li a:hover{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_title_holder span{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_button a{background-color: #00d4ff;border-color:#00d4ff; color: #0a1628;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_button a:hover{background-color: transparent; color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_news .news_list ul li .details .title a:hover{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_news .news_list ul li .details .date a:hover{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .cursor-inner.cursor-hover{background-color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .cursor-outer{border-color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .cursor-inner{background-color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .progress_inner .background .bar_in{background: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .progressbar .line{background-color: #00d4ff;}

/* ----- HEADER MENU CENTERED ----- */
.grax_tm_topbar .container .topbar_inner {
    justify-content: center !important;
    position: relative;
}

.grax_tm_topbar .topbar_inner .logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ----- HERO - BRAND FIRST LAYOUT ----- */
.grax_tm_hero .details .brand_prefix {
    display: block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00d4ff;
    margin-bottom: 15px;
    font-weight: 500;
}

.grax_tm_hero .details .brand_name {
    font-family: 'Archivo Black', Arial Black, sans-serif;
    font-size: 75px;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 0.95;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.grax_tm_hero .details .founder {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 25px;
}

.grax_tm_hero .details .tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.6;
}

@media (max-width: 1040px) {
    .grax_tm_hero .details .brand_name {
        font-size: 70px;
    }
}

@media (max-width: 768px) {
    .grax_tm_hero .details .brand_name {
        font-size: 50px;
        letter-spacing: 2px;
    }

    .grax_tm_hero .details .brand_prefix {
        font-size: 8px;
    }

    .grax_tm_hero .details .founder {
        font-size: 14px;
    }

    .grax_tm_hero .details .tagline {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .grax_tm_hero .details .brand_name {
        font-size: 40px;
    }
}

/* ----- HERO BACKGROUND ----- */
.grax_tm_hero .ripple {
    background-image: url(../img/slider/2.png);
}

.grax_tm_hero .ripple:before {
    background-color: rgba(0, 0, 0, 0); /* Remove dark overlay */
}

/* ----- TOPBAR LOGO SIZE ----- */
.grax_tm_topbar .logo img {
    max-width: 150px;
}

/* ----- SECTION TAGLINE ----- */
.section_tagline {
    font-size: 12px;
    font-weight: 500;
    color: #00d4ff;
    margin-bottom: 20px;
    margin-top: 5px;
}

/* ----- ERGOSPHERE/ERGOCONNECT LAYOUT ----- */
/* Reduce bottom margin to match other sections */
.grax_tm_about {
    margin-bottom: 100px;
}

.grax_tm_about .about_inner {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.grax_tm_about .left {
    width: 50%;
}

.grax_tm_about .left .image {
    max-height: 400px;
    overflow: hidden;
}

.grax_tm_about .right {
    width: 50%;
}

/* Image styling for .right (when image is on right side) */
.grax_tm_about .right .image {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.grax_tm_about .right .image img {
    opacity: 0;
    min-width: 100%;
}

.grax_tm_about .right .main {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    box-shadow: 0px 0px 40px rgb(0 0 0 / 20%);
}

/* Button under image styling */
.grax_tm_about .right .grax_tm_button {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Reversed layout: text left, image right */
.grax_tm_about .about_inner.reverse {
    flex-direction: row;
}

.grax_tm_about .about_inner.reverse .left {
    order: 1;
}

.grax_tm_about .about_inner.reverse .right {
    order: 2;
}

@media (max-width: 1040px) {
    .grax_tm_about .about_inner {
        flex-direction: column;
    }

    .grax_tm_about .about_inner.reverse {
        flex-direction: column;
    }

    .grax_tm_about .about_inner.reverse .left,
    .grax_tm_about .about_inner.reverse .right {
        order: unset;
        width: 100%;
    }

    .grax_tm_about .left,
    .grax_tm_about .right {
        width: 100%;
    }
}

/* ----- ERGOSPHERE VIDEO ----- */
.ergosphere_video {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 3:4 aspect ratio to match original placeholder */
    overflow: hidden;
    border-radius: 8px;
}

.ergosphere_video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

@media (max-width: 768px) {
    .ergosphere_video {
        padding-bottom: 75%; /* 4:3 aspect ratio on mobile */
    }
}

/* ----- ERGOSPHERE GALLERY ----- */
.ergosphere_gallery {
    margin-top: 60px;
    margin-bottom: 0;
    overflow: hidden;
}

.gallery_scroll {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    animation: scrollGallery 60s linear infinite;
    width: max-content;
}

.gallery_scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery_card {
    flex: 0 0 auto;
    width: 180px;
    background: #1a2332;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.gallery_card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.gallery_item {
    display: block;
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
    pointer-events: none;
    cursor: default;
}

.gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: saturate(0.8) brightness(0.9);
}

.gallery_card:hover .gallery_item img {
    filter: saturate(1) brightness(1);
}

.gallery_caption {
    display: block;
    padding: 12px 10px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 48px;
}

.gallery_card:hover .gallery_caption {
    color: #fff;
}

/* Magnific Popup 50% size */
.mfp-container .mfp-content {
    max-width: 50% !important;
}

.mfp-figure {
    transform: translateY(-40px);
}

.mfp-container .mfp-figure figure {
    background: #1a2332;
    border-radius: 8px;
    overflow: hidden;
}

/* Magnific Popup close button positioning */
.mfp-close {
    right: 15px !important;
    top: -40px !important;
    font-size: 36px;
    opacity: 0.8;
}

.mfp-close:hover {
    opacity: 1;
}

/* Magnific Popup title and description styling */
.mfp-title {
    padding: 0 !important;
    line-height: 1.5;
}

.mfp-title .popup-title-bar {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 15px 20px;
    background: #1a2332;
}

.mfp-title .popup-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 0;
}

.mfp-title .popup-desc-bar {
    padding: 15px 20px;
    background: #111a28;
}

.mfp-title .popup-desc {
    display: block;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .gallery_card {
        width: 150px;
    }

    .gallery_item {
        height: 100px;
    }

    .ergosphere_gallery {
        margin-top: 40px;
    }

    .mfp-container .mfp-content {
        max-width: 90% !important;
    }
}

/* ----- SECTION NUMBERS ----- */
.section_number {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    color: #00d4ff;
    margin-bottom: 10px;
    font-weight: 500;
}

.section_subtitle {
    color: #00d4ff;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* ----- JOURNEY SECTION ----- */
.grax_tm_journey {
    padding: 100px 0;
}

/* Top Area - Two Columns */
.journey_top {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
    width: 100%;
}

.grax_tm_journey .journey_portrait {
    flex: 0 0 35%;
    min-width: 280px;
    max-width: 400px;
    margin-top: 10px;
}

.journey_intro {
    flex: 1 1 auto;
    padding-top: 0;
    text-align: left;
}

.grax_tm_journey .journey_portrait .image {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.grax_tm_journey .journey_portrait .image img {
    width: 100%;
    display: block;
    filter: saturate(0.7) brightness(0.9);
    transition: all 0.5s ease;
}

.grax_tm_journey .journey_portrait .image:hover img {
    filter: saturate(1) brightness(1);
}

.journey_intro .intro_label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: 500;
}

.journey_intro .intro_text {
    font-size: 15px;
    line-height: 30px;
    font-weight: 400;
    margin-bottom: 20px;
}

.journey_intro .intro_text:last-child {
    margin-bottom: 0;
}

/* Timeline Section */
.journey_timeline {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.timeline_image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #1a2332;
    margin-top: 50px;
}

.timeline_image img {
    width: 100%;
    display: block;
}

.journey_quote {
    display: inline-block;
    position: relative;
    font-family: "Poppins", sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 55px;
    padding-top: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.journey_quote::before {
    content: "\201C";
    position: absolute;
    top: 0;
    left: 0;
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    color: rgba(0, 212, 255, 0.6);
}

/* Credentials Row */
.credentials_row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 50px;
}

.credential_item {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.credential_item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

.credential_text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.credential_item:hover .credential_text {
    color: #fff;
}

/* Awards Gallery */
.awards_gallery {
    margin-top: 60px;
    overflow: hidden;
}

.awards_scroll {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    animation: scrollAwards 45s linear infinite;
    width: max-content;
}

.awards_scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollAwards {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.award_card {
    flex: 0 0 auto;
    width: 170px;
    background: #1a2332;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.award_card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.award_image {
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
    cursor: pointer;
}

.award_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.award_card:hover .award_image img {
    filter: grayscale(0%);
}

.award_caption {
    display: block;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.award_card:hover .award_caption {
    color: #fff;
}

/* ----- ERGOBYTES SECTION ----- */
.ergobytes_top {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 50px;
}

/* Reversed layout: image left, text right */
.ergobytes_top.reverse .ergobytes_logo {
    order: 1;
}

.ergobytes_top.reverse .ergobytes_text {
    order: 2;
}

.ergobytes_text {
    flex: 1;
}

.ergobytes_description {
    font-size: 15px;
    line-height: 30px;
    font-weight: 400;
    margin-top: 25px;
    margin-bottom: 30px;
}

/* Space after title holder when subtitle is inside (sections 02, 03) */
#ergobytes .grax_tm_title_holder,
#ergoconnect .grax_tm_title_holder {
    margin-bottom: 25px;
}

.ergobytes_logo {
    flex: 0 0 350px;
}

.ergobytes_logo .image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.ergobytes_logo .image img {
    opacity: 0;
    min-width: 100%;
}

.ergobytes_logo .main {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.season_label {
    /* Inherits from .section_subtitle - cyan, 12px */
}

/* Episodes Carousel */
.ergobytes_episodes {
    margin-top: 20px;
    margin-bottom: 40px;
    overflow: hidden;
}

.episodes_scroll {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    animation: scrollEpisodes 30s linear infinite;
    width: max-content;
}

.episodes_scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollEpisodes {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.episode_card {
    flex: 0 0 auto;
    width: 280px;
    background: #1a2332;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.episode_card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.episode_image {
    width: 100%;
    height: 158px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(0.8) brightness(0.9);
    transition: all 0.3s ease;
}

.episode_card:hover .episode_image {
    filter: saturate(1) brightness(1);
}

@media (max-width: 1040px) {
    .ergobytes_top {
        flex-direction: column;
    }

    .ergobytes_logo {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ----- ERGOBYTES CTA ----- */
.ergobytes_cta {
    text-align: left;
    margin-top: 0;
}

.ergobytes_cta .youtube_link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ergobytes_cta .youtube_link:hover {
    background: #00d4ff;
    color: #0a1628;
}

.ergobytes_cta .youtube_link .icon {
    font-size: 12px;
}

/* ----- CONTACT SIMPLE LAYOUT ----- */
.contact_simple {
    max-width: 600px;
}

/* Hide YouTube on desktop (mobile-only item) */
.contact_simple .info_list ul li.youtube-item {
    display: none;
}

/* Mobile line spans - inline on desktop */
.mobile-line {
    display: inline;
}

.contact_simple .info_list ul li {
    margin-bottom: 25px;
}

.contact_simple .info_list ul li .list_inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact_simple .info_list ul li .svg {
    position: relative;
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: 2px;
    filter: brightness(0) invert(1);
    transform: none;
    top: auto;
    left: auto;
}

.contact_simple .info_list ul li .first {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.contact_simple .info_list ul li .second {
    font-size: 16px;
}

.contact_simple .info_list ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact_simple .info_list ul li a:hover {
    color: #00d4ff;
}

/* ----- FOOTER ----- */
.ee_footer {
    background-color: #0a0a0a;
    padding: 40px 0 60px 0 !important;
}

.ee_footer .my_wave {
    display: none;
}

.ee_footer .copyright_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.ee_footer .logo img {
    max-height: 120px;
    max-width: none;
}

.ee_footer .social ul {
    display: flex;
    gap: 20px;
}

.ee_footer .social ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ee_footer .social ul li a:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.ee_footer .social ul li a .svg {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.ee_footer .copy p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1040px) {
    .journey_top {
        flex-direction: column;
        gap: 40px;
    }

    .grax_tm_journey .journey_portrait {
        flex: none;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .journey_intro {
        padding-top: 0;
        text-align: center;
    }

    .journey_intro .intro_text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .journey_intro .intro_label {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .journey_intro .intro_text {
        font-size: 14px;
    }

    .journey_quote {
        font-size: 1em;
        padding-left: 45px;
        padding-top: 10px;
    }

    .journey_quote::before {
        font-size: 70px;
    }

    .journey_timeline {
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .credentials_row {
        gap: 8px;
    }

    .credential_item {
        padding: 8px 15px;
    }

    .credential_text {
        font-size: 11px;
    }

    .award_card {
        max-width: 150px;
        min-width: 120px;
    }

    .award_image {
        height: 160px;
    }
}

/* ----- PRELOADER COLOR ----- */
body.dark .loader_line:before {
    background-color: #00d4ff;
}

/* ----- DARK MODE REFINEMENTS ----- */
body.dark {
    background-color: #0a1628;
}

body.dark .grax_tm_portfolio,
body.dark .grax_tm_news,
body.dark .grax_tm_journey {
    background-color: #0d1a2d;
}

body.dark .grax_tm_contact {
    background-color: #0a1628;
    margin-bottom: 0;
    padding-bottom: 100px;
}

body.dark .grax_tm_copyright {
    background-color: #060d18;
}

/* ----- TO TOP BUTTON ----- */
.progressbar a {
    color: #fff;
}

.progressbar .line {
    background-color: rgba(255, 255, 255, 0.4);
}

/* ----- SCROLL INDICATOR ----- */
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_down .line {
    background-color: #00d4ff;
}
