/*
 Theme Name: Genesis Child – DDC
 Theme URI: https://bradycandell.com
 Author: Brady Candell
 Author URI: https://bradycandell.com
 Description: Genesis child theme by Brady Candell
 Version: 1.3.5
 License: GPL-2.0-or-later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: genesis-child-ddc
 Template: genesis
*/

:root {
    --ddc-max-width: 1200px;
    --blue-teal: #4671a5; /* ← added semicolon */
    --dark-teal-color: #007cba;
    --teal-color: #3498db;
    --light-teal-color: #a8d8ff;
    --turquoise-color: #44a08d;
    --purple-color: #694493;
    --blurple-color: #5d70d0;
    --shady-blue: #00547e;
    --dark-blue: #17365d;
    --dark-color: #2c3e50;
    --gray-blue-color: #3d618d;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--dark-blue);
}

/* MOBILE STYLES (320px+) */

body {
    margin: 0;
    color: var(--dark-blue);
}
strong {
    font-weight: 500;
}
header.site-header .wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.widget-area.header-widget-area {
    width: 100%;
}
nav.header-nav {
    position: relative;
    width: 10px;
    z-index: 2;
    left: calc(100% - 40px);
}
header.site-header .wrap #menu-mainmenu {
    display: block;
    list-style: none;
    width: 153px;
    height: 58px;
    padding-right: 15px;
    position: absolute;
    top: 15px;
    right: -40px;
    text-align: right;
}
#menu-mainmenu a {
    text-decoration-color: transparent;
    transition: color .25s, text-decoration-color ease-in .25s;
    -webkit-tap-highlight-color: transparent; /* mobile blue flash */
    outline: none; /* removes mouse/touch outline */
}
#menu-mainmenu a:focus { outline: none; }
#menu-mainmenu a:hover {
    color: var(--dark-teal-color);
    text-decoration: underline;
}
#menu-mainmenu li {
    border: 2px solid var(--dark-teal-color);
    text-align: right;
    background-color: rgba(250, 250, 250, 0.90);
    box-shadow: 0 11px 8px rgba(100, 100, 100, 0.2);
}
#menu-mainmenu li:first-child {
    padding: 0;
    background-color: transparent;
    border-width: 0;
    box-shadow: none;
    margin-bottom: 2px;
}
.header-widget-area .header-nav #menu-mainmenu li:nth-child(2) {
    padding: 8px 10px 4px;
    border-width: 2px 2px 0;
    border-radius: 10px 0 0 0;
}
#menu-mainmenu li:not(:first-child) {
    display: none;
    padding: 4px 10px;
    border-width: 0px 2px;
}
#menu-mainmenu li:last-child {
    padding-bottom: 10px;
    border-radius: 0 0 10px 10px;
    border-bottom-width: 2px;
}
#menu-mainmenu li:first-child a, #menu-mainmenu li:first-child a:hover {
    text-decoration: none;
    font-weight: 800;
    font-size: 30px;
    display: flex;
    flex-direction: column;
    line-height: 8px;
    color: var(--dark-teal-color);
}
#menu-mainmenu li:first-child a::after,
#menu-mainmenu li:first-child a::before {
    content: "\2014";
}
.site-container {
    margin-inline: auto;
}
section.wp-content {
    background-color: #eee;
}
section#homeHeader {
    padding: 2vh 4vw 4.2vh;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
}
footer.site-footer {
    display: none;
}
#hdrAttention .hdrAttentionBox .material-symbols-outlined {
    font-size: 35px;
}
.hdrIconFill {
    font-variation-settings:
        "FILL" 1,
        "GRAD" 100;
}
.hdrIconOutline {
    font-variation-settings:
        "FILL" 0,
        "GRAD" 100;
}
section#hdrWords {
    padding-bottom: 1rem;
}
section#hdrAttention {
    /* Mobile: 280 x 120 */
    width: 350px;
    height: 130px;
    background-color: var(--dark-color);
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: rotate(4deg);
    animation-name: bigBox;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

section#hdrAttention:hover,
section#hdrAttention:hover .hdrAttentionBox {
    /* Override animation and smoothly animate to centered position */
    animation: hoverSettle 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes bigBox {
    0% {
        transform: rotate(4deg) translateY(0);
    }
    50% {
        transform: rotate(4deg) translateY(20px);
    }
    100% {
        transform: rotate(4deg) translateY(0);
    }
}

@keyframes hoverSettle {
    to {
        transform: rotate(0deg) translateY(0px);
    }
}

#hdrAttention .bar {
    position: absolute;
    border-radius: 3px; /* Rounded corners! */
    left: 20px;
    z-index: 2;
}
#hdrAttention .bar.bar1 {
    width: 310px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.12);
    top: 25px;
}
#hdrAttention .bar.bar2 {
    width: 250px;
    height: 9px;
    background-color: rgba(255, 255, 255, 0.3);
    top: 62px;
}
#hdrAttention .bar.bar3 {
    width: 169px;
    height: 9px;
    background-color: rgba(255, 255, 255, 0.2);
    top: 80px;
}
#hdrAttention .bar.bar4 {
    width: 250px;
    height: 9px;
    background-color: rgba(255, 255, 255, 0.4);
    top: 98px;
}
h2.wp-block-heading {
    font-size: 3.45rem;
    line-height: 3.45rem;
}
h2.wp-block-heading.hdrSolidColor {
    position: relative;
    margin-bottom: 1.5rem;
    max-width: 375px;
}
h2.wp-block-heading.hdrSolidColor::after {
    font-family: "Material Symbols Outlined";
    content: "\e7e1";
    font-size: 4.5rem;
    position: absolute;
    top: 120px;
    right: 0;
    transform: rotate(220deg);
    display: block;
}
h2.wp-block-heading.hdrGradient {
    margin: 0;
    background-image: linear-gradient(345deg, var(--purple-color), var(--blurple-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
article.hdrAttentionBox {
    background-color: #fffaf0;
    border-radius: 12px;
    padding: 15px;
    z-index: 9;
    transform: rotate(-4deg);
    margin-top: 20px;
    animation-name: smallBox;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
.hdrAttentionBox#hab1 {
    animation-duration: 2.2s;
}
.hdrAttentionBox#hab2 {
    animation-duration: 2.6s;
}
article.hdrAttentionBox h4 {
    margin: 0;
    font-weight: normal;
}
#homeHeader h3.wp-block-heading {
    font-weight: 400;
    color: #676767;
}
@keyframes smallBox {
    0% {
        transform: rotate(-4deg) translateY(0);
    }
    50% {
        transform: rotate(-4deg) translateY(10px);
    }
    100% {
        transform: rotate(-4deg) translateY(0);
    }
}

div#hdrButtonBox {
    padding-bottom: 2vh;
    display: flex;
    flex-wrap: nowrap;
    /* justify-content: space-around; */
    background: linear-gradient(
        0deg,
        rgba(238, 238, 238, 1) 0%,
        rgba(255, 255, 255, 1) 25%,
        rgba(255, 255, 255, 1) 100%
    );
}
.page-template-front-page div#hdrButtonBox {
    padding-bottom: 6vh;
}
#hdrButtonBox a.wp-element-button {
    border-radius: 10px;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 190px;
    height: 48px;
    transition:
        background-color 0.3s,
        color 0.3s ease,
        background-position 0.35s ease,
        opacity 0.35s ease;
}
.page-template-front-page #hdrButtonBox .btnOutline:first-child a.wp-element-button {
    width: 12.5rem;
}
.page-template-front-page #hdrButtonBox a.wp-element-button {
    width: 15rem;
}
#hdrButtonBox .btnGradient .wp-element-button {
    position: relative;
    z-index: 0;
    overflow: hidden;
    color: #fff;
}

#hdrButtonBox .btnGradient .wp-element-button::before,
#hdrButtonBox .btnGradient .wp-element-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

#hdrButtonBox .btnGradient .wp-element-button::before {
    background-image: linear-gradient(345deg, var(--purple-color), var(--blurple-color));
    opacity: 1;
    z-index: -1;
    transition: opacity 0.35s ease;
}

#hdrButtonBox .btnGradient .wp-element-button::after {
    background-image: linear-gradient(345deg, var(--blurple-color), var(--purple-color));
    z-index: -2;
}

#hdrButtonBox .btnGradient .wp-element-button:hover::before {
    opacity: 0;
}

/* === OUTLINE BUTTON === */
#hdrButtonBox .btnOutline .wp-element-button {
    background: #fff;
    border: 2px solid var(--teal-color);
    color: var(--teal-color);
    border-radius: 10px;
    position: relative;
    font-family:
        Roboto,
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        "Apple Color Emoji",
        "Segoe UI Emoji";
}
#hdrButtonBox .btnOutline .wp-element-button::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--teal-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    pointer-events: none;
}
#hdrButtonBox span.material-symbols-outlined {
    color: var(--teal-color);
}
/*
#hdrButtonBox .btnOutline .wp-element-button:hover {
    color: #efefef;
    background-color: var(--teal-color);
}
*/
#hdrButtonBox .btnOutline .wp-element-button:hover {
    background-color: rgba(14, 165, 233, 0.08);
    color: var(--teal-color);
}
#hdrButtonBox .btnOutline .wp-element-button:hover::after {
    transform: scaleX(1);
}
.page-id-202 div#hdrButtonBox {
    background: transparent;
}
.page-id-202 header.entry-header h1.entry-title {
    text-align: center;
    padding: 10px 0 20px;
    font-family: Roboto;
    color: var(--teal-color);
    text-shadow: 0 10px 5px rgba(0, 0, 0, 0.175);
    font-size: 23px;
}
section#featuredProjectsBox {
    display: flex;
    flex-direction: column;
}
.flipperBox {
    position: relative;
    width: 365px;
    height: 550px;
    box-sizing: border-box;
    margin: 0 auto 20px auto;
    /* perspective: 1000px; */
}
.flipperInner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 600ms ease;
}
.flipperFront,
.flipperBack {
    width: 365px;
    height: 550px;
    border: 2px solid var(--teal-color);
    border-radius: 20px;
    position: absolute;
    inset: 0;
    background-color: #fff;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-sizing: border-box;
}
section.flipperFront img {
    width: 100%;
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid #eee;
    -webkit-box-shadow: 0 10px 15px -11px rgba(0, 0, 0, 0.59);
    box-shadow: 0 10px 15px -11px rgba(0, 0, 0, 0.59);
}

/* Back face starts rotated */
.flipperBack {
    transform: rotateY(180deg);
    padding: 10px;
}

/* Flipped state (toggled by JS) */
.flipperInner.is-flipped {
    transform: rotateY(180deg);
}
.portfolio-flip-btn,
h3.hdrFlipBox {
    margin: 0 10px;
}
h3.hdrFlipBox {
    margin-top: 20px;
}
article.paragraph_flip_box {
    font-size: 0.9rem;
    padding: 0 10px 10px;
}
.paragraph_flip_box a {
    color: #000;
}
.paragraph_flip_box a:hover {
    color: var(--teal-color);
}
@media (prefers-reduced-motion: reduce) {
    .flipperInner {
        transition: none;
    }
}
.code-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.btnBackFlipBox {
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.btnBackFlipBox:hover {
    background: #444;
    border-color: #666;
}
.btnBackFlipBox.active {
    background: var(--dark-teal-color);
    border-color: var(--dark-teal-color);
}
.code-container {
    margin-bottom: 13px;
}
.codeFlipBox {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: auto;
    height: 360px;
}
.codeFlipBox pre {
    margin: 0;
    padding: 20px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: "Courier New", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
}
.codeFlipBox code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-family: inherit;
}
section#bottomButtonsFB {
    display: flex;
    gap: 8px;
}
section.portfolio-card-front {
    border: 2px solid var(--teal-color);
    border-radius: 15px;
    padding: 1rem;
}
section#cardStackBox {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    padding: 106px 0 0 50px;
    gap: 80px;
}
#btnForward svg,
#btnBack svg {
    width: 25px;
    height: 21px;
}
article#cardMachine {
    display: flex;
    width: 517px;
    height: 415px;
    align-items: center;
}
section#cardHolder {
    position: relative;
    height: 437px;
    width: 476px;
    left: 45px;
}
.actualCard {
    box-sizing: content-box;
    position: absolute;
    height: 376px;
    width: 310px;
    padding: 16px;
    border: 1px solid #ffffff;
    border-radius: 20px 0;
    transition:
        transform 0.4s ease-in-out,
        z-index 0s 0.4s;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.imageHolder {
    width: 310px;
    height: 192px;
}
.cardImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px 0;
}
.cardNumber1 {
    transform: translate(0, -6.5px) rotate(0deg) scale(1);
}
.cardNumber2 {
    transform: translate(25px, -5px) rotate(2deg) scale(1);
}
.cardNumber3 {
    transform: translate(51px, 3px) rotate(1.65deg) scale(1);
}
.cardNumber4 {
    transform: translate(74px, 12px) rotate(2deg) scale(1);
}
.cardNumberHidden {
    transform: translate(74px, 12px) rotate(2deg) scale(1);
    opacity: 0;
    pointer-events: none;
}
aside.cardInfo {
    max-width: 600px;
    padding-top: 52px;
}
h2.cardInfo_headline {
    font:
        700 48px / 56px Karla,
        sans-serif;
}
div.cardInfo_paragraph p {
    font:
        500 16px / 20px Karla,
        sans-serif;
}
h3.cardHeadline {
    font:
        700 24px / 24px Triront,
        serif;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    text-transform: uppercase;
    letter-spacing: normal;
}
p.cardTextArea {
    font:
        500 18px / 19px Karla,
        sans-serif;
    width: 305px;
}
a#btnBack {
    position: relative;
    z-index: 999999;
}
#btnForward {
    position: relative;
    z-index: 99999;
}
#btnForward.is-disabled,
#btnBack.is-disabled,
#btnForward[disabled],
#btnBack[disabled] {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}
.cm-fit {
    width: 345px;
    height: 292px;
    position: relative;
    top: 25px;
    left: 10px;
}
.cm-fit #cardMachine {
    width: 517px;
    height: 415px;
    transform-origin: top left;
    transform: scale(0.6673) !important;
}

.github-link-container {
    margin-bottom: 15px;
}

.github-link {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: #24292e;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    height: 36px;
    font-size: 14px;
}

.github-link:hover {
    background: #2f363d;
    color: #fff;
}

.github-link::before {
    margin-right: 8px;
}

h2.wp-block-heading.hdrH2Project {
    font-size: 2.25rem;
    margin: 0 3vw;
}
h2.wp-block-heading.hdrH2Project.glitch-text {
    max-width: 1400px;
    margin: 0 auto;
}
.glitch-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 60px 0 30px;
    cursor: default;
    position: relative;
    animation: glitch 8s infinite;
}

.glitch-text1::before,
.glitch-text1::after {
    content: "Featured Projects";
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}
.glitch-text2::before,
.glitch-text2::after {
    content: "Deeper Insights: Case Studies";
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
    padding: 10px 10px 10px 0;
}

.glitch-text::before {
    animation: glitchTop 6s infinite;
    color: var(--teal-color);
    z-index: -1;
}

.glitch-text::after {
    animation: glitchBottom 5.5s infinite;
    color: #e74c3c;
    z-index: -2;
}

@keyframes glitch {
    0%,
    96%,
    100% {
        transform: translate(0);
    }
    97% {
        transform: translate(-2px, 1px);
    }
    98% {
        transform: translate(1px, -1px);
    }
    99% {
        transform: translate(-1px, 2px);
    }
}

@keyframes glitchTop {
    0%,
    94%,
    100% {
        transform: translate(0);
    }
    95% {
        transform: translate(-2px, -2px);
    }
    96% {
        transform: translate(2px, 1px);
    }
}

@keyframes glitchBottom {
    0%,
    92%,
    100% {
        transform: translate(0);
    }
    93% {
        transform: translate(1px, 2px);
    }
    94% {
        transform: translate(-1px, -1px);
    }
}

/* Flip Box Styles */

.portfolio-flip-card {
    width: 100%;
    max-width: 350px;
    height: 450px;
    margin: 0 auto 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--teal-color);
    border-radius: 15px;
    perspective: 1000px;
}

.portfolio-flip-card:hover {
}

.portfolio-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.portfolio-flip-card.flipped .portfolio-card-inner {
    transform: rotateY(180deg);
}

.portfolio-card-front,
.portfolio-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-card-front {
    background: white;
}

.portfolio-card-back {
    background: var(--dark-color);
    color: white;
    transform: rotateY(180deg);
    padding: 0;
}

/* Front Side Styles */
.portfolio-project-header {
    margin: 0;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-project-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.portfolio-project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-project-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #333;
}

.portfolio-project-description {
    flex: 1;
    margin-bottom: 20px;
}

.portfolio-project-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.portfolio-project-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.portfolio-flip-btn {
    background: #667eea;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    height: 36px;
}

.portfolio-flip-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.portfolio-flip-btn:hover::before {
    left: 100%;
}

.portfolio-flip-btn::after {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--light-teal-color);
}
.btnFB1::after {
    content: "{ }";
}
.btnFB2::after {
    content: "\21A9";
}

.portfolio-flip-btn:hover {
    background: var(--blurple-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    padding-right: 35px;
}

.portfolio-flip-btn:hover::after {
    right: 8px;
    opacity: 1;
}

.portfolio-demo-btn {
    background: #4ecdc4;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.portfolio-demo-btn:hover {
    background: var(--turquoise-color);
    transform: translateY(-2px);
}

/* Back Side Styles */
.portfolio-code-header {
    padding: 20px 20px 0;
}
.portfolio-code-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 4px 0;
}
.portfolio-code-subtitle {
    color: #bdc3c7;
    margin: 0 0 16px 0;
    font-size: 14px;
}
.portfolio-tech-stack {
    padding: 0 20px 16px;
}
.portfolio-tech-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ecf0f1;
}
.portfolio-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.portfolio-tech-item {
    margin: 0;
}
.portfolio-tech-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.portfolio-code-preview {
    flex: 1;
    padding: 0 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-code-preview-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ecf0f1;
}

.portfolio-code-block {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 12px;
    margin: 0;
    font-family: "Courier New", Monaco, monospace;
    font-size: 12px;
    line-height: 1.4;
    overflow-y: auto;
    flex: 1;
    color: #e8e8e8;
}

.portfolio-code-actions {
    padding: 16px 20px 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.portfolio-github-btn {
    background: #333;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    height: 36px;
}

.portfolio-github-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.portfolio-back-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.portfolio-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.portfolio-tech-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.portfolio-tech-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-tech-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.portfolio-tech-btn.active {
    background: var(--blurple-color);
    border-color: var(--blurple-color);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.portfolio-tech-btn.no-code {
    opacity: 0.5;
    cursor: not-allowed;
}
.portfolio-tech-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.portfolio-code-block {
    transition: opacity 0.3s ease;
}

/* Case Study */
section.caseStudy {
    display: flex;
    flex-direction: column;
    padding: 5px 7px;
    margin: 0;
    background-image: linear-gradient(
        180deg,
        rgba(238, 238, 238, 1) 0%,
        rgba(255, 255, 255, 1) 2%,
        rgba(255, 255, 255, 1) 100%
    );
}
.logo a {
    font-size: 1rem;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin: 10px;
    letter-spacing: 0.35rem;
}
article.contentBoxCS {
    max-width: 1020px;
    margin: 0 auto;
    padding-bottom: 20px;
}
.contentBoxCS p {
    max-width: 620px;
    padding: .5rem 0;
}
section.caseStudy h2 {
    padding: 10px 10px 10px 0;
    font-weight: 600;
    font-size: 24px;
    margin-top: 30px;
}
.imageBoxCS {
    display: grid;
    max-width: 1024px;
    margin: 20px auto;
}
.imageBoxCS img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    transition: opacity 300ms ease;
    margin: 0 auto;
    border: 1px solid #ddd;
    -webkit-box-shadow: 0px 10px 15px -10px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 10px 15px -10px rgba(0, 0, 0, 0.75);
}

.imageBoxCS .dsktpImageCS {
    opacity: 1;
}
.imageBoxCS .mobileImageCS {
    opacity: 0;
    width: 36.68%;
}

/* Hover/focus: crossfade */
.imageBoxCS:hover .dsktpImageCS,
.imageBoxCS:focus-within .dsktpImageCS {
    opacity: 0;
}
.imageBoxCS:hover .mobileImageCS,
.imageBoxCS:focus-within .mobileImageCS {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .imageBoxCS img {
        transition: none;
    }
}

.dsktpImageCS {
    width: 100%;
    opacity: 1;
}
.mobileImageCS {
    opacity: 0;
}
.caseStudy h3 {
    font-size: 1.25rem;
    color: var(--purple-color);
}
a.btnCaseStudy {
    background: var(--purple-color);
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: 1s;
}
a.btnCaseStudy:hover {
    box-shadow: inset 0 0 0 2em var(--teal-color);
}

/* timeline */
body.page-id-202 {
    background-color: #efefef;
    background: #fff;
    overflow: hidden;
    height: 100vh;
}
.timeline-container {
    width: 100%;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
}
.timeline-inner {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50vw;
    min-width: 4100px;
    transition: all 0.6s ease;
}
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: black;
    transform: translateY(-50%);
    box-shadow: 0 10px 3px rgba(0, 0, 0, 0.125);
}
.employer {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.5s ease;
    z-index: 10;
}
.employer-dot {
    width: 16px;
    height: 16px;
    background: var(--teal-color);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.11);
    transition: all 0.5s ease;
}
.employer-name {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #999;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.5s ease;
}
.employer-date {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #777;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}
.employer.expanded .employer-name {
    opacity: 0;
}
.employer.expanded .employer-dot {
    width: 28px;
    height: 28px;
    background: var(--teal-color);
    border: 4px solid #fff;
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.11);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
.employer.expanded .employer-date {
    font-size: 16px;
    color: var(--teal-color);
    font-weight: 900;
}
.info-card {
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 280px;
    max-height: 500px;
    background: white;
    border: 2px solid var(--teal-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    overflow: hidden;
}
.employer.expanded .info-card {
    transform: translateX(-50%) translateY(-2%) scale(0.95) rotateY(0deg);
    opacity: 1;
    pointer-events: auto;
}
.info-card.card-expanded {
    width: 380px;
    max-height: 600px;
    overflow-y: auto;
    top: -320px;
}
.info-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}
.info-card .job-title {
    font-weight: bold;
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}
.info-card .location {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #777;
}
.read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--teal-color);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}
.read-more:hover {
    color: var(--teal-color);
    text-decoration: underline;
}
.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.info-card.card-expanded .card-details {
    max-height: 400px;
    margin-top: 15px;
}
.card-details h4 {
    font-size: 14px;
    color: #333;
    margin: 10px 0 5px 0;
}
.card-details ul {
    margin: 5px 0;
    padding-left: 20px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}
.card-details li {
    margin: 4px 0;
}
.blip {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 5;
}
.blip.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.blip-dot {
    width: 12px;
    height: 12px;
    background: #656565;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 4px rgba(0, 0, 0, 0.125);
    transition: all 0.3s ease;
}
.blip-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.blip-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    text-align: center;
}
.blip-company {
    display: block;
    font-weight: bold;
    color: #999;
    transition: opacity 0.3s ease;
}
.blip-project {
    display: none;
    transition: opacity 0.3s ease;
}
.blip.visible .blip-company {
    display: none;
}
.blip.visible .blip-project {
    display: block;
}
.blip.easter-egg .blip-dot {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
.nav-hint {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(10px);
    z-index: 1000;
    width: 280px;
}
span.desktopOnly {
    display: none;
}

/* Case Study */
.page-id-168 {
   /* padding: 0 4vw 0 2vw; */
}
.page-id-168 h1.entry-title {
    display: none;
}
.page-id-168 .hdrCaseStudy {
    font-size: 2.75rem;
    max-width: 355px;
    position: relative;
}
.page-id-168 .hdrCaseStudy::after {
    font-family: "Material Symbols Outlined";
    content: "\e7e1";
    font-size: 3.5rem;
    position: absolute;
    top: 30px;
    right: 60px;
    transform: rotate(192deg);
    display: block;
}
.page-id-168 h2.wp-block-heading {
    font-size: 2.5rem;
    line-height: 2.8rem;
    padding: 0.9rem 0;
}
.page-id-168 .entry-content p {
    color: #336;
    font: 16px / 20px Roboto;
    padding: 0.25rem 0 0.33rem;
}
.page-id-168 .hdrPhases {
    color: var(--teal-color);
    padding: 0.75rem 0 0.5rem 0;
}
.page-id-168 h3.uagb-heading-text {
    padding: 1.75rem 0 0.75rem;
    color: var(--dark-teal-color);
    font-size: 1.5rem;
}
.page-id-168 section.catAnalysis h4 {
    color: var(--teal-color);
    font-weight: 500;
    padding: 1rem 0 0.5rem;
}
.page-id-168 section.catAnalysis ul,
.page-id-168 section.catAnalysis ol {
    margin: 0 10px;
    padding: 0 10px;
}
.page-id-168 section.catAnalysis ul li,
.page-id-168 section.catAnalysis ol li {
    padding: 5px 0;
}

/* tabbed Feature boxes */
/* Container (no grid needed now) */
section.thisWysiwyg {
    margin-bottom: 2rem;
}
/* Container */
.featureBoxes {
}

/* Tablist (kept your styling) */
.featureTabs[role="tablist"] {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    position: relative;
}
.featureTabs [role="tab"] {
    padding: 0.45rem 0.75rem 0.85rem;
    border-radius: 0.5rem 0.5rem 0 0;
    border: 1px solid #e5e7eb;
    border-width: 1px 1px 0 1px;
    font-family: 'Roboto';
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    color: var(--teal-color);
}
.featureTabs [role="tab"][aria-selected="true"] {
    background-color: #fff;
    z-index: 3;
}
.featureTabs [role="tab"][aria-selected="false"] {
    background-color: #e5e5e5;
    z-index: 1;
    color: var(--gray-blue-color);
}
.entry-content .featureBoxes .featurePanel.panel1[role="tabpanel"] {
    border-radius: 0 12px 12px;
}
.featureTabs::after {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    background-color: #e5e5e5;
    top: 35px;
}

/* Panels — same card feel as your top panel */
.featurePanel[role="tabpanel"] {
    display: none; /* only active shows */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition:
        opacity 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.featurePanel[aria-hidden="false"] {
    display: block;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    opacity: 1;
    background-color: #fff !important;
}

/* List spacing (carried over) */
.featurePanel ul {
    padding: 0 0.33rem 0 0.75rem;
}
.featurePanel ul li {
    padding: 0.5rem 0;
    line-height: 1.4rem;
}

@media (prefers-reduced-motion: reduce) {
    .featurePanel[role="tabpanel"] {
        transition: none;
    }
}
/* end tabbed boxes */
.pcp-button-next.swiper-button-next.top_right,
.pcp-button-prev.swiper-button-prev.top_right {
    display: flex;
    margin: 0 40vw;
    -webkit-transition: 0s !important;
    transition: 0s !important;
    border-radius: 8px !important;
    border-color: var(--blue-teal) !important;
    border-width: 2px !important;
}
.pcp-button-prev .fa,
.pcp-button-next .fa {
    color: var(--blue-teal) !important;
}

.entry .entry-content .sp-pcp-section a, 
.sp-pcp-section a {
    text-decoration: none;
    transition: all 0.33s;
    color: var(--dark-teal-color);
}
.buttonsBox {
    padding: 2rem 0 .5rem;
    gap: 4px;
}
.phaseButtons a {
    border-radius: 10px;
    background-color: #fff;
    border: 2px solid var(--blue-teal);
    color: var(--blue-teal);
    padding: 6px;    
    letter-spacing: -.015em;
    font-size: 14px;
}
.phaseButtons a:hover {
    background-color: var(--light-teal-color);
}
.phaseButtons.activeBtn a,
.phaseButtons.activeBtn a:hover {
    background-color: var(--teal-color);
    color: white;
}
.phaseBox {
    display: none;
}
.phaseBox.activePhase {
    display: block;
}
section#imagesBox {
    height: 1000px;
    position: relative;
    display: flex;
}
section#imagesBox figure {
    position: absolute;
    opacity: 0;
    transition: opacity .3s;
}
#imagesBox figure:first-child {
    opacity: 1;
}
article#phase4background {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 550px;
    height: 100%;
    aspect-ratio: 550 / 743;
    background: url(/wp-content/uploads/2025/10/caseStudyV3_desktop.jpg);
    background-size: contain;
}
article#phase4background figure {
    position: absolute;
    width: 34.545%;
    height: auto;
    left: 50%;
    top: calc(50% + 8.5%);
    transform: translate(-50%, -50%);
    display: block;
}
.pcp-button-prev:hover, 
.pcp-button-next:hover {
    background-color: var(--light-teal-color) !important;
}
/* Make the entire headline link a flex row: label + chevron */
.hdrExpand .boxExpander{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.5rem;
    width:100%;
    padding:.25rem 0;
    text-decoration:none;
    color: var(--teal-color);
    cursor:pointer;
    max-width: 450px;
}
.expandWrapper ol {
    margin: 0 40px;
}
.hdrExpand a.boxExpander[aria-expanded=true] {
    color: var(--blue-teal);
}
.hdrExpand .boxExpander .label {
    flex: 1 1 auto;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--blue-teal);
}
.hdrExpand .boxExpander .label .abbr {
    display: none;
}
.hdrExpand > .boxExpander > svg.chev{
    display:block;              /* avoid baseline quirks */
    width:25px;
    height:25px;
    flex:0 0 25px;              /* no grow/shrink */
    max-width:none;             /* defeat svg { max-width:100% } */
    max-height:none;            /* defeat svg { height:auto } */
    aspect-ratio:1 / 1;         /* belt + suspenders */
    transform-origin:center;
    transform-box:fill-box;
    transition:transform 200ms ease;
    transform:rotate(0deg);
}

/* Rotate when expanded */
.hdrExpand .boxExpander[aria-expanded="true"] > svg.chev{
    transform:rotate(180deg);
}

/* Focus affordance */
.hdrExpand .boxExpander:focus-visible{
    outline:2px solid currentColor;
    outline-offset:2px;
}

/* Your existing panel animation can stay as-is */
.expandableBox{
    display:grid;
    grid-template-rows:0fr;
    transition:grid-template-rows 300ms ease;
}
.expandableBox.expandedBox{
    grid-template-rows:1fr;
}
.expandWrapper{
    overflow:hidden;
}
.expandWrapper h3 {
    font-weight: 400;
    color: var(--teal-color);
    font-size: 1.2rem;
    padding: .5rem 7px .2rem;
}
.expandWrapper ul {
    margin: 0 0 0 20px;
}
.expandWrapper ul li {
    padding: 5px 0 8px;
    color: var(--shady-blue);
}
.expandWrapper ul li::marker {
    color: var(--teal-color);
}
figure.wp-block-image.size-full {
    display: flex;
}

/* Reset list + keep Genesis look */
.nav-primary .menu { margin:0; padding:0; list-style:none; }

/* Hamburger button */
.nav-toggle summary {
  list-style:none;
  width:44px; height:44px;
  display:grid; place-items:center;
  cursor:pointer; border:0; background:transparent;
}
.nav-toggle summary::-webkit-details-marker { display:none; }

.bars, .bars::before, .bars::after{
  content:""; display:block; width:22px; height:2px;
  background: currentColor; position:relative;
  transition: transform .25s ease, opacity .2s ease;
}
.bars::before, .bars::after{ position:absolute; left:0; }
.bars::before{ transform: translateY(-7px); }
.bars::after { transform: translateY( 7px); }

.nav-toggle .drawer{ display:none; gap:.75rem; padding:1rem; border-top:1px solid #e5e5e5; }
.nav-toggle[open] .drawer{ display:grid; }

/* Animate to "X" when open */
.nav-toggle[open] .bars{ transform: rotate(45deg); }
.nav-toggle[open] .bars::before{ opacity:0; }
.nav-toggle[open] .bars::after{ transform: rotate(-90deg); }

/* End Case Study */
@media (min-width: 600px) {      
    nav.header-nav {
        position: unset;
        width: 100%;
    }
    header.site-header .wrap #menu-mainmenu {
        position: unset;
        display: flex;
        flex-direction: row;
        list-style: none;
        max-width: 250px;
        width: 100%;
        justify-self: end;
        justify-content: space-between;
        align-items: center;
        height: 58px;
        padding-right: 15px;
    }
    #menu-mainmenu li {
        border: none;
        text-align: right;
        background-color: transparent;
        box-shadow: none;
    }
    #menu-mainmenu li:first-child {
        display: none;
    }
    .header-widget-area .header-nav #menu-mainmenu li:nth-child(2) {
        padding: 0;
        border-width: 0;
        border-radius: 0;
    }
    #menu-mainmenu li:not(:first-child) {
        display: block;
    }
    #menu-mainmenu li:last-child {
        padding-bottom: 4px;
        border-radius: 0;
        border-bottom-width: 0;
    }
    #menu-mainmenu a {
        text-decoration-color: transparent;
        transition: color .25s, text-decoration-color ease-in .25s;
    }
    #menu-mainmenu a:hover {
        color: var(--dark-teal-color);
        text-decoration: underline;
    }
    li#menu-item-488,
    li#menu-item-489 {
        display: block;
    }
    #menu-mainmenu li#menu-item-490 a {
        display: none;
    }    
}
@media (min-width: 768px) {
    section#homeHeader {
        flex-direction: row;
    }
    section#hdrAttention {
        width: 360px;
        height: 140px;
    }
    h2.wp-block-heading.hdrSolidColor::after {
        top: 120px;
        right: 0;
    }
    .code-nav-buttons {
        flex-direction: row;
    }
    section#featuredProjectsBox {
        display: flex;
        flex-direction: row;
    }
    .btnBackFlipBox {
        text-align: center;
    }
    .codeFlipBox pre {
        padding: 15px;
        font-size: 13px;
    }
    .employer.expanded .info-card {
        transform: translateX(-50%) translateY(-10%) scale(1) rotateY(0deg);
    }
    .page-id-202 header.entry-header h1.entry-title {
        padding: 20px 0 40px;
        font-size: 32px;
    }
    #hdrButtonBox a.wp-element-button {
        height: 3rem;
    }
    .hdrExpand .boxExpander .label .abbr {
        display: inline;
        color: var(--blue-teal);
    }      
}
@media (max-width: 976px) {
    .uagb-post__arrow-outside.uagb-post-grid .slick-next {
        right: -10px;
    }
    .uagb-post__arrow-outside.uagb-post-grid .slick-prev {
        left: -20px;
    }
}
@media (min-width: 1024px) {
    section#hdrAttention {
        width: 462px;
        height: 172px;
    }
    .flipperBox,
    .flipperFront,
    .flipperBack {
        width: 450px;
        height: 600px;
    }
    .cm-fit {
        width: 450px;
        height: 380px;
    }
    .cm-fit #cardMachine {
        transform: scale(0.8) !important;
    }
    .nav-hint {
        bottom: 30px;
        left: 50%;
        padding: 15px 25px;
        width: 420px;
    }
    span.desktopOnly {
        display: inline;
    }
}
@media (min-width: 1280px) {
    .codeFlipBox {
        height: 405px;
    }
    .page-id-168 .site-inner {
        max-width: 1000px;
        margin: 0 auto;
    }
}
@media (min-width: 1400px) {
    .flipperBox,
    .flipperFront,
    .flipperBack {
        width: 550px;
        height: 660px;
    }
    .cm-fit {
        width: 530px;
        height: 466px;
    }
    .cm-fit #cardMachine {
        width: 517px;
        height: 415px;
    }
    .codeFlipBox {
        height: 468px;
    }
}
@media (min-width: 1920px) {
    .flipperBox,
    .flipperFront,
    .flipperBack {
        width: 600px;
        height: 690px;
    }
    .cm-fit {
        width: 580px;
        height: 488px;
        top: 35px;
    }
    .cm-fit #cardMachine {
        width: 517px;
        height: 415px;
        transform-origin: top left;
        transform: scale(1.11) !important;
    }
    .codeFlipBox {
        height: 490px;
    }
}