
/* ==========================================================
   TRADEEAGLE - RIGHT PORTFOLIO SLIDER
   Theme:
   Primary Orange: #FFBA01
   Secondary Navy: #003263
========================================================== */


/* ==========================================================
   01. PORTFOLIO PANEL - BASE STYLING
========================================================== */

.te-portfolio-panel,
.te-portfolio-panel * {
    box-sizing: border-box;
}

.te-portfolio-panel {
    --te-orange: #FFBA01;

    position: relative;
    isolation: isolate;

    width: 100%;
    height: 100%;
    min-height: 600px;

    overflow: hidden;

    background: var(--te-orange);
    color: #171717;

    font-family: Arial, Helvetica, sans-serif;
}


/* ==========================================================
   02. PANEL TOP HEADER
========================================================== */

.te-panel-top {
    position: absolute;
    z-index: 30;

    top: 24px;
    left: 8%;
    right: 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* ==========================================================
   03. GROWTH ADVISOR DETAILS
========================================================== */

.te-advisor {
    display: flex;
    align-items: center;
    gap: 15px;
}

.te-advisor-icon {
    width: 48px;
    height: 48px;

    border: 2px solid #fff7;
    border-radius: 50%;

    display: grid;
    place-items: center;

    font-size: 27px;
}

.te-advisor strong {
    display: block;

    font-size: clamp(15px, 2vw, 23px);
    font-weight: 800;
    line-height: 1.2;
}

.te-advisor small {
    display: block;

    margin-top: 4px;
    font-size: 12px;
}


/* ==========================================================
   04. HEADER MENU TOGGLE BUTTON
========================================================== */

.te-panel-menu {
    position: relative;
    z-index: 35;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 52px;
    height: 44px;

    padding: 0;

    gap: 8px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.te-panel-menu span {
    display: block;

    width: 40px;
    height: 2px;

    background: #111;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        width 0.3s ease;
}

.te-panel-menu span:last-child {
    width: 52px;
}


/* ==========================================================
   05. MENU TOGGLE - OPEN / CLOSE ANIMATION
========================================================== */

.te-panel-menu[aria-expanded="true"] span:first-child {
    transform: translateY(5px) rotate(45deg);
}

.te-panel-menu[aria-expanded="true"] span:last-child {
    width: 40px;

    transform: translateY(-5px) rotate(-45deg);
}


/* ==========================================================
   06. DECORATIVE BACKGROUND SHAPE
========================================================== */

.te-panel-decor {
    position: absolute;

    left: 55%;
    top: 20%;

    width: 260px;
    height: 65%;

    border: 3px solid #ffffff75;
    border-radius: 55px;

    transform: rotate(-35deg);

    pointer-events: none;
    display: none;
}


/* ==========================================================
   07. CAROUSEL MAIN CONTAINER
========================================================== */

.te-carousel {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    height: 100%;
    min-height: 600px;
}


/* ==========================================================
   08. CAROUSEL STAGE
========================================================== */

.te-carousel-stage {
    position: relative;

    height: 360px;

    perspective: 1200px;
}


/* ==========================================================
   09. WEBSITE BROWSER CARD
========================================================== */

.te-browser-card {
    position: absolute;

    top: 50%;
    left: 50%;

    display: block;

    width: min(65%, 470px);
    height: 280px;

    overflow: hidden;

    border-radius: 9px;
    background: #f7f7f7;

    box-shadow: 0 18px 45px #7d4e0038;

    text-decoration: none;

    transform: translate(-50%, -50%) scale(0.8);

    opacity: 0;
    pointer-events: none;

    will-change: transform;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.65s,
        filter 0.65s;
}


/* ==========================================================
   10. ACTIVE WEBSITE SLIDE
========================================================== */

.te-browser-card[data-position="active"] {
    z-index: 4;

    opacity: 1;
    pointer-events: auto;

    transform: translate(-50%, -50%) scale(1);
}


/* ==========================================================
   11. PREVIOUS WEBSITE SLIDE
========================================================== */

.te-browser-card[data-position="prev"] {
    z-index: 2;

    opacity: 0.62;

    transform:
        translate(calc(-50% - 93%), -50%)
        scale(0.85);

    filter: saturate(0.65);
}


/* ==========================================================
   12. NEXT WEBSITE SLIDE
========================================================== */

.te-browser-card[data-position="next"] {
    z-index: 2;

    opacity: 0.92;

    transform:
        translate(calc(-50% + 93%), -50%)
        scale(0.85);
}


/* ==========================================================
   13. BROWSER TOP BAR
========================================================== */

.te-browser-bar {
    display: flex;
    align-items: center;

    gap: 10px;

    height: 26px;
    padding: 0 11px;

    background: #f0f0f0;
    color: #888;
}


/* ==========================================================
   14. BROWSER DOTS
========================================================== */

.te-browser-dots {
    display: flex;
    gap: 4px;
}

.te-browser-dots i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #ff9c83;
}

.te-browser-dots i:nth-child(2) {
    background: #f5c85d;
}

.te-browser-dots i:nth-child(3) {
    background: #81cb8d;
}


/* ==========================================================
   15. BROWSER URL AND PLUS ICON
========================================================== */

.te-browser-url {
    flex: 1;

    overflow: hidden;

    font-size: 9px;
    text-align: center;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.te-browser-plus {
    font-size: 15px;
}


/* ==========================================================
   16. WEBSITE SCREENSHOT AREA
========================================================== */

.te-browser-screen {
    height: calc(100% - 26px);

    overflow: hidden;

    background: #fff;
}

.te-browser-screen img {
    display: block;

    width: 100%;
    height: auto;
    min-height: 100%;

    object-fit: cover;
    object-position: top;
}


/* ==========================================================
   17. SCREENSHOT FALLBACK
========================================================== */

.te-screenshot-fallback {
    height: 100%;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 10px;

    color: #1b1b1b;

    font-size: 28px;
    font-weight: 800;

    background: linear-gradient(
        140deg,
        #fff,
        #dce5e6
    );
}

.te-screenshot-fallback small {
    font-size: 12px;
    font-weight: 400;
}


/* ==========================================================
   18. CAROUSEL BOTTOM BAR
========================================================== */

.te-carousel-bottom {
    position: absolute;

    bottom: 60px;
    left: 8%;
    right: 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.te-portfolio-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* ==========================================================
   19. CAROUSEL CONTROLS
========================================================== */

.te-carousel-controls {
    display: flex;
    align-items: center;

    gap: 12px;
}

.te-carousel-controls button {
    width: 36px;
    height: 36px;

    background: transparent;

    border: 1px solid #171717;
    border-radius: 50%;

    color: #171717;

    font-size: 18px;

    cursor: pointer;
}

.te-carousel-counter {
    min-width: 48px;

    font-size: 12px;
    font-weight: 700;
    text-align: center;
}


/* ==========================================================
   20. FULL SCREEN NAVIGATION MENU
========================================================== */

.te-site-menu {
    position: absolute;
    inset: 0;

    z-index: 25;

    padding:
        110px
        clamp(24px, 8%, 70px)
        35px;

    overflow-y: auto;

    background: #003263;
    color: #fff;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(28px);

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease;
}


/* ==========================================================
   21. MENU OPEN STATE
========================================================== */

.te-site-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(0);
}


/* ==========================================================
   22. MENU HEADING
========================================================== */

.te-site-menu .te-menu-heading {
    display: flex;
    justify-content: space-between;

    margin-bottom: 18px;

    color: #FFBA01;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* ==========================================================
   23. MENU NAVIGATION LINKS
========================================================== */

.te-site-menu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 0;

    border-bottom: 1px solid #ffffff35;

    color: #fff;

    font-size: clamp(22px, 2.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.1;

    text-decoration: none;

    transition:
        color 0.2s,
        padding-left 0.2s;
}

.te-site-menu > a:hover,
.te-site-menu > a:focus-visible {
    color: #FFBA01;
    padding-left: 8px;
}

.te-site-menu > a span {
    color: #FFBA01;

    font-size: 12px;
    letter-spacing: 1px;
}


/* ==========================================================
   24. MENU DESCRIPTION
========================================================== */

.te-site-menu p {
    margin-top: 22px;

    color: #ffffffb0;

    font-size: 12px;
}


/* ==========================================================
   25. PANEL WHEN MENU IS OPEN
========================================================== */

.te-portfolio-panel.menu-open
.te-panel-top .te-advisor {
    color: #fff;
}

.te-portfolio-panel.menu-open
.te-advisor-icon {
    border-color: #ffffff7a;
}

.te-portfolio-panel.menu-open
.te-panel-menu span {
    background: #FFBA01;
}


/* ==========================================================
   26. TABLET RESPONSIVE - MAX 900PX
========================================================== */

@media (max-width: 900px) {

    .te-portfolio-panel,
    .te-carousel {
        min-height: 510px;
    }

    .te-carousel-stage {
        height: 280px;
    }

    .te-browser-card {
        width: min(72%, 440px);
        height: 245px;
    }

    .te-panel-top {
        top: 18px;
    }

    .te-panel-decor {
        height: 50%;
    }
}


/* ==========================================================
   27. MOBILE RESPONSIVE - MAX 520PX
========================================================== */

@media (max-width: 520px) {

    .te-portfolio-panel,
    .te-carousel {
        min-height: 420px;
    }

    /* TOP HEADER */

    .te-panel-top {
        left: 5%;
        right: 5%;
    }

    /* ADVISOR */

    .te-advisor-icon {
        width: 36px;
        height: 36px;

        font-size: 21px;
    }

    .te-advisor strong {
        font-size: 14px;
    }

    .te-advisor small {
        font-size: 10px;
    }

    /* MENU TOGGLE */

    .te-panel-menu {
        width: 40px;
    }

    .te-panel-menu span,
    .te-panel-menu span:last-child {
        width: 30px;
    }

    /* CAROUSEL */

    .te-carousel-stage {
        height: 220px;
    }

    .te-browser-card {
        width: 76%;
        height: 180px;
    }

    .te-browser-card[data-position="prev"] {
        transform:
            translate(calc(-50% - 90%), -50%)
            scale(0.85);
    }

    .te-browser-card[data-position="next"] {
        transform:
            translate(calc(-50% + 90%), -50%)
            scale(0.85);
    }

    /* BOTTOM CONTROLS */

    .te-carousel-bottom {
        left: 5%;
        right: 5%;
        bottom: 20px;
    }

    .te-portfolio-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    /* MOBILE MENU */

    .te-site-menu {
        padding: 92px 24px 28px;
    }

    .te-site-menu > a {
        font-size: 25px;
        padding: 10px 0;
    }
}


/* ==========================================================
   28. REDUCED MOTION ACCESSIBILITY
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .te-site-menu,
    .te-panel-menu span {
        transition: none;
    }
}
