/* ===========================
   Global Variables
=========================== */
:root {
    /*--bg-dark: #191919;*/
    --primary-green: #62A320;
    --light-green: #92D948;
    --text-light: #F8FBF8;
    --text-dark: #212C3D;
    /*--font-main: "Cabin", sans-serif;*/
    --font-main: 'Cabin', sans-serif;


    --fs-h1: 2.4rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.2rem;
    --fs-body: 1.1rem;
    --fs-lead: 1.1rem;

    --fs-container-max-width: 1200px;
    --fs-nav: 1.0rem;
    --fs-nav-border-radius: 25px;

    --banner-img: url('../../assets/images/main/jasonbyagis_site_v2_headergraphic.jpg');
}

/* ===========================
   Theme Styles
=========================== */
/* Dark Mode */
[data-theme="dark"] {
    --bg-color: #191919;
    --text-color: #f4f4f4;
    --nav-bg: #212c3d;
    --nav-link: #bbb;
    --nav-link-hover-bg: #76bd2a;
    --nav-link-hover-color: #000;
}
/* Light Mode (default) */
[data-theme="light"] {
    --bg-color: #f4f4f4;
    --text-color: #000;
    --nav-bg: #62A320;
    --nav-link: #000;
    --nav-link-hover-bg: #76bd2a;
    --nav-link-hover-color: #000;
}
/* Rad Mode 🤘 */
[data-theme="rad"] {
    --bg-color: #ff00c8;
    --text-color: #00ffe0;
    --nav-bg: #111;
    --nav-link: #fff600;
    --nav-link-hover-bg: #ff0066;
    --nav-link-hover-color: #00ffe0;
    --font-main: 'Comic Sans MS', cursive, sans-serif;
}
[data-theme="contrast-high"] {
    --bg-color: #000;
    --text-color: #fff;
    --nav-bg: #000;
    --nav-link: #fff;
    --nav-link-hover-bg: #ff0;
    --nav-link-hover-color: #000;
}


* {
    -webkit-tap-highlight-color: transparent;
}

/* ===========================
   Theme Toggle
=========================== */
.theme-toggle {
    background: none;
    border: none;
    color: var(--nav-link);
    font-size: 1rem;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(-15deg);
    /*transform: rotate(360deg);*/
}
.theme-toggle:focus,
.theme-toggle:active {
    outline: none;
    box-shadow: none;
}


/* ===========================
   Base Styles
=========================== */
body {
    margin: 0;
    /*background: var(--bg-dark);*/
    /*color: var(--text-light);*/
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
}

h1, h2, h3, p, li {
    /* margin: 0 0 1rem 0; */
    margin: 1rem;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 500; }
p, li { font-size: var(--fs-body); }
.lead { font-size: var(--fs-lead); }

a {
    color: var(--primary-green);
    text-decoration: underline;
}
a:hover {
    color: var(--light-green);
}

button {
    background: var(--primary-green);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover {
    background: var(--light-green);
    color: var(--text-dark);
}
.btn-pill { border-radius: 25px; padding: 0.8rem 2rem; }

/* Utility */
.mt-neg { margin-top: -100px; }

/* ===========================
   NAVIGATION (desktop + mobile)
=========================== */
.navbar {
    /*background: #212c3d;*/
    background: var(--nav-bg);
    /*background: linear-gradient(*/
    /*        to bottom,*/
    /*        var(--nav-bg) 70%,*/
    /*        transparent 100%*/
    /*);*/
    /*transition: background 0.5s ease;*/
    font-family: var(--font-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.3s ease;
}

/* Center content container */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /*max-width: 1250px;*/
    margin: 0 auto;
    padding: 10px 15px;
}
.nav-container p {
    color: var(--nav-link);
}

/* Nav links (desktop) */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    /*color: #fff;*/
    color: var(--nav-link);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--fs-nav-border-radius);
    font-size: var(--fs-nav);
    transition: background 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    /*background: #76bd2a;*/
    /*color: #000;*/
    background: var(--nav-link-hover-bg);
    color: var(--nav-link-hover-color);
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
    display: none;
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 30px;
    z-index: 2000;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: "";
    display: block;
    background: #fff;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    position: absolute;
    left: 7px;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Transform hamburger into X when active */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}



/* ===========================
   SCROLL BEHAVIOR
=========================== */
.navbar.hide {
    top: -100px; /* hides the navbar when scrolling down */
}

/* ===========================
   Layout Containers
=========================== */
.container {
    max-width: var(--fs-container-max-width);
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* ===========================
   Hero
=========================== */
.hero {
    text-align: center;
}
.hero .subtitle { font-size: 1.5rem; }


.intro-banner{
    background-image: var(--banner-img);
}

/* ===========================
   Intro Section Styles
   Scoped to .intro-section
=========================== */

.intro-section {
    position: relative;
    height: 60vh;
    background: var(--banner-img) center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-main, 'Source Sans Pro', sans-serif);
    overflow: hidden;
}

.intro-section .intro-overlay {
    /*position: absolute;*/
    inset: 0;
    /*background: rgba(0, 0, 0, 0.55); !* dark overlay *!*/
    z-index: 1;
}

.intro-section .intro-content {
    /*position: relative;*/
    /*z-index: 2;*/
    text-align: center;
    padding: 20px;
    max-width: 800px;
}

.intro-section .intro-title {
    /*font-size: clamp(2rem, 5vw, 4rem);*/
    /*font-weight: 700;*/
    margin-bottom: 15px;
}

.intro-section .intro-subtitle {
    /*font-size: clamp(1rem, 2vw, 1.5rem);*/
    /*margin-bottom: 30px;*/
    line-height: 1.6;
}

.intro-section .intro-btn {
    display: inline-block;
    background-color: #76bd2a;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.intro-section .intro-btn:hover {
    background-color: #65a520;
    color: #000000;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .intro-section {
        height: 40vh;
    }

    .intro-section .intro-content {
        padding: 10px;
    }
}


/* ===========================
   Features
=========================== */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}
.feature .icon {
    flex: 0 0 75px;
    width: 75px;
    height: 75px;
}
.feature .icon img {
    width: 100%;
    height: auto;
    display: block;
}
.feature-text h2 { margin: 0 0 0.3rem 0; }
.feature-text p { margin: 0; line-height: 1.4; }

@media (max-width: 768px) {
    .features { grid-template-columns: 1fr; }
}

/* ===================================
   Meet Jason Section
   Scoped to .meetjason-section
=================================== */

.meetjason-section {
    padding: 80px 0;
    /*background: var(--section-bg, #f7f8f6);*/
    /*font-family: var(--font-main, 'Source Sans Pro', sans-serif);*/
    /*color: #111;*/
    text-align: center;
}

.meetjason-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.meetjason-header h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.meetjason-header p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    /*color: #333;*/
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Cards */
.meetjason-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-items: center;
}

.mj-card {
    background: var(--primary-green);
    color: var(--text-color);
    padding: 30px 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mj-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

.mj-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mj-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.mj-card strong {
    font-weight: 700;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .meetjason-header p {
        margin-bottom: 20px;
    }

    .mj-card {
        text-align: center;
    }

    .mj-icon {
        justify-content: center;
    }
}


/* ===========================
   Pricing
=========================== */
.pricing { text-align: center; }
.pricing-card {
    background: var(--primary-green);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 20px;
    display: inline-block;
    width: 50%;
}
.pricing-card .price {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

/* ===========================
   Case Study
=========================== */
.case-study {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.case-study .case-text { flex: 1 1 400px; }
.case-study .case-text2{
    width: 65%;
    margin-top: -100px;
}
.case-study .case-images {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.case-study img {
    width: 100%;
    border-radius: 10px;
}
.case-details { width: 65%; font-size: var(--fs-lead); }

.case-study-carousel .carousel {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.case-study-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.case-study-carousel .carousel-slide {
    flex: 0 0 100%; /* full width per slide */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}


/* ===========================
   See Jason
=========================== */
.see-jason {
    text-align: center;
    padding: 3rem 1rem;
}
.see-jason h2 { font-size: 2rem; margin-bottom: 2rem; }
.see-jason-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.see-jason-images img {
    /*max-width: 100%;*/
    max-width: 497px;
    max-height: 499px;
    /*height: auto;*/
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ===========================
   Timeline
=========================== */
/* ========= TIMELINE SECTION ========= */
.timeline {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px; /* <-- space between cards (both directions) */
    padding: 80px 20px; /* more top padding to prevent circle clipping */
}

/* ========= TIMELINE CARD ========= */
.timeline-card {
    background-color: #6bac26;
    border-radius: 20px;
    width: 260px;
    height: 280px; /* Fixed height */
    padding: 80px 20px 20px 20px; /* more top padding for circle overlap */
    text-align: center;
    color: #1e2838;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* body and footer separate nicely */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* ========= HEADER CIRCLE ========= */
/* ========= HEADER CIRCLE (UNIFORM SIZE) ========= */
.timeline-header {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e2838;
    color: #a7e64a;
    font-weight: bold;
    width: 120px;              /* fixed width */
    height: 120px;             /* fixed height */
    border-radius: 50%;
    display: flex;             /* centers text both ways */
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.3;
    padding: 10px;             /* space for multi-line text */
    box-sizing: border-box;
}


/* ========= BODY TEXT ========= */
.timeline-body {
    flex-grow: 1;                 /* take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;      /* center vertically */
    align-items: center;
    margin-top: -2rem;             /* small offset for circle */
}

.timeline-body p {
    margin: 6px 0;
    font-size: 1.1rem;
}

/* ========= FOOTER ICON ========= */
.timeline-footer {
    margin-top: auto; /* pushes it to bottom */
    padding-bottom: 10px;
}

.timeline-footer img{
    width: 50px;
    height: 50px;
}

.timeline-footer img:hover {
    transform: scale(1.2);
}

.timeline-icon {
    font-size: 1.8rem;
    color: #1e2838;
    transition: transform 0.2s ease;
}

.timeline-icon:hover {
    transform: scale(1.2);
}

/*.timeline {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    gap: 1rem;*/
/*    text-align: center;*/
/*    justify-content: space-around;*/
/*}*/
/*.timeline .step {*/
/*    flex: 1 1 250px;*/
/*    background: var(--primary-green);*/
/*    color: var(--text-dark);*/
/*    border-radius: 20px;*/
/*    padding: 1.5rem;*/
/*}*/
/*.timeline .step h3 { margin-bottom: 1rem; }*/

/* ===========================
   Timeline Section (Scoped)
=========================== */

.timeline-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-color, #fff);
    /*font-family: var(--font-main, 'Source Sans Pro', sans-serif);*/
}

.timeline-section h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 50px;
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}

/* Base fade/slide animation */
.timeline-step,
.arrow {
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeInHoldFadeOut 10s infinite ease-in-out;
}

/* Staggered timing for left-to-right reveal */
.timeline-step:nth-child(1)  { animation-delay: 0.3s; }
.arrow:nth-of-type(2)        { animation-delay: 1.0s; }
.timeline-step:nth-child(3)  { animation-delay: 1.8s; }
.arrow:nth-of-type(4)        { animation-delay: 2.5s; }
.timeline-step:nth-child(5)  { animation-delay: 3.3s; }

/* Step visuals */
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /*background: #0c3729;*/
    background: var(--primary-green);
    margin-bottom: 10px;
    border: 2px solid #111;
}

.day {
    font-weight: 600;
    margin-bottom: 4px;
}

.label {
    font-size: 0.95rem;
    /*color: #222;*/
}

.arrow {
    font-size: 1.8rem;
    color: var(--text-color);
    transform: rotate(45deg);
}

/* ===========================
   Progress Bar
=========================== */
.timeline-line {
    /*position: absolute;*/
    /*top: 50%;*/
    left: 0;
    height: 4px;
    width: 60%;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    /*background: #0c3729;*/
    background: var(--primary-green);
    animation: lineProgress 10s infinite ease-in-out;
}

/* ===========================
   Keyframes: fade-in → hold → fade-out
=========================== */
@keyframes fadeInHoldFadeOut {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    15% {
        opacity: 1;
        transform: translateX(0);
    }
    60% {
        opacity: 1;
        transform: translateX(0);
    }
    75% {
        opacity: 0;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes lineProgress {
    0% {
        width: 0%;
        opacity: 0;
    }
    16.6% {
        width: 33.3%;
        opacity: 1;
    }
    33.2% {
        width: 66.3%;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .timeline {
        flex-direction: row;
        gap: 10px;
    }

    /*.arrow-wrapper {*/
    /*    transform: rotate(90deg);*/
    /*}*/

    /*.arrow {*/
    /*    transform: rotate(90deg);*/
    /*}*/
}


/* ===========================
   Contact
=========================== */
.contact { text-align: center; }
.contact form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.contact input {
    padding: 0.8rem;
    border-radius: 10px;
    border: none;
    flex: 1 1 300px;
}

/* === Popup Contact Form Styles === */

.contact-popup-btn {
    background-color: #76bd2a;
    color: #000;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-popup-btn:hover {
    background-color: #65a520;
}

/* Overlay modal */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.contact-modal-content {
    background: #fff;
    color: black;
    text-align: left;
    border-radius: 10px;
    padding: 25px 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
    font-family: "Source Sans Pro", sans-serif;
}

.contact-modal-content h2 {
    margin-top: 0;
    color: #000;
    text-align: center;
    margin-bottom: 15px;
}

.contact-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.contact-close:hover {
    color: #000;
}

.contact-modal-content label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.contact-modal-content input,
.contact-modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-modal-content input:focus,
.contact-modal-content textarea:focus {
    outline: none;
    border-color: #76bd2a;
}

.contact-submit {
    background-color: #76bd2a;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background 0.3s;
}

.contact-submit:hover {
    background-color: #65a520;
}

.contact-status {
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
}

.contact-countdown {
    font-style: italic;
    transition: opacity 0.3s ease;
}

#contactUsForm {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#contactUsForm.hidden {
    opacity: 0;
    visibility: hidden;
}


@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* ===========================
   Book a Call
=========================== */
.book-call {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-dark);
}
.book-call .intro-text { margin-bottom: 2rem; }
.call-box {
    background: #fff;
    color: var(--text-dark);
    border-radius: 20px;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.call-box h2 { margin-bottom: 1.5rem; }
.call-box form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.call-box input {
    flex: 1 1 300px;
    padding: 0.8rem 1rem;
    border-radius: 25px;
    border: 1px solid #ccc;
}
.call-box button { border-radius: 25px; }

/* ===========================
   Footer
=========================== */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ===========================
   Horizontal Rule
=========================== */
hr {
    border: none;
    /*border-top: 6px solid var(--text-light);*/
    border-top: 6px solid var(--text-color);
    margin-top: -1rem;
    border-radius: 5px;
    width: 100%;
}


/* ===========================
   Carousel things
=========================== */

/* ===========================
   Shared Carousel Styles
=========================== */
.carousel-wrapper {
    position: relative;
    margin: 2rem 0;
}

.carousel {
    position: relative;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

/* Prev/Next Buttons */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background: rgba(0, 0, 0, 0.5); */
    background: gray;
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    /* transition: background 0.3s; */
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    /* background: rgba(0, 0, 0, 0.8); */
    background: var(--primary-green);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Dots */
.carousel-dots {
    text-align: center;
    margin-top: 1rem;
}

.carousel-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background: var(--primary-green);
}

/* ===========================
   Content Carousel
=========================== */
/*.full-content .carousel-slide {*/
/*    display: none;*/
/*    text-align: center;*/
/*    height: 1000px;*/
/*    !* overflow: hidden; *!*/
/*}*/

/*.full-content .carousel-slide.active {*/
/*    display: block;*/
/*}*/

/*.full-content .carousel-slide img {*/
/*    width: 90%;*/
/*    height: 700px;*/
/*    object-fit: fill;*/
/*    !* border-radius: 10px; *!*/
/*    margin-bottom: 1rem;*/
/*    border-radius: 30px;*/
/*}*/

/*.full-content .carousel-text {*/
/*    max-width: 60%;*/
/*    margin-left: 0;*/
/*    text-align: left;*/
/*}*/

/* ===========================
   Content Carousel (Updated Layout)
=========================== */
/*.full-content .carousel-slide {*/
/*    display: none;*/
/*    text-align: left;*/
/*    height: 1000px;*/

/*    display: flex;              !* flex layout *!*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    gap: 2rem;*/
/*    flex-wrap: nowrap;          !* 🔑 keep them on one row on desktop *!*/
/*    opacity: 0;*/
/*    transform: translateX(20px);*/
/*    transition: opacity 0.8s ease, transform 0.8s ease;*/
/*    pointer-events: none;*/
/*}*/

/*.full-content .carousel-slide.active {*/
/*    display: flex !important;*/
/*    opacity: 1;*/
/*    transform: translateX(0);*/
/*    pointer-events: all;*/
/*}*/

/*!* Left column (text) *!*/
/*.full-content .carousel-text {*/
/*    flex: 0 0 calc(50% - 1rem); !* 🔑 account for the 2rem gap (split) *!*/
/*    max-width: none;            !* don’t cap at 50% again *!*/
/*    margin-left: 0;*/
/*}*/

/*!* Right column (image) *!*/
/*.full-content .carousel-slide img {*/
/*    flex: 0 0 calc(50% - 1rem); !* 🔑 same as text *!*/
/*    width: 100%;                !* fill its flex box *!*/
/*    height: 800px;*/
/*    object-fit: fill;*/
/*    border-radius: 30px;*/
/*    margin-bottom: 0;*/
/*    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);*/
/*}*/

/* ===========================
   Content Carousel (Final Fade Version)
=========================== */
/*.full-content .carousel {*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*    width: 100%;*/
/*    min-height: 1000px; !* holds space for slides *!*/
/*}*/

/*!* Base slide styling *!*/
/*.full-content .carousel-slide {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    gap: 2rem;*/
/*    flex-wrap: nowrap;*/

/*    opacity: 0;*/
/*    transform: translateX(20px);*/
/*    transition: opacity 0.8s ease, transform 0.8s ease;*/
/*    pointer-events: none;*/
/*}*/

/*!* Active slide *!*/
/*.full-content .carousel-slide.active {*/
/*    opacity: 1;*/
/*    transform: translateX(0);*/
/*    pointer-events: all;*/
/*    z-index: 2;*/
/*}*/

/*!* Left column (text) *!*/
/*.full-content .carousel-text {*/
/*    flex: 0 0 calc(50% - 1rem);*/
/*    max-width: none;*/
/*    margin-left: 0;*/
/*}*/

/*!* Right column (image) *!*/
/*.full-content .carousel-slide img {*/
/*    flex: 0 0 calc(50% - 1rem);*/
/*    width: 100%;*/
/*    height: 800px;*/
/*    object-fit: cover;*/
/*    border-radius: 30px;*/
/*    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);*/
/*}*/

/*!* The parent keeps height from first (or tallest) slide *!*/
/*.full-content .carousel {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    overflow: hidden;*/

/*    display: flex;           !* keeps internal structure sane *!*/
/*    flex-direction: column;*/
/*}*/

/*!* Absolutely position slides so they overlap *!*/
/*.full-content .carousel-slide {*/
/*    position: absolute;*/
/*    inset: 0;                !* shorthand for top/right/bottom/left:0 *!*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    gap: 2rem;*/
/*    flex-wrap: nowrap;*/

/*    opacity: 0;*/
/*    transform: translateX(20px);*/
/*    transition: opacity 0.8s ease, transform 0.8s ease;*/
/*    pointer-events: none;*/
/*}*/

/*.full-content .carousel-slide.active {*/
/*    opacity: 1;*/
/*    transform: translateX(0);*/
/*    pointer-events: all;*/
/*    z-index: 2;*/
/*}*/

/*!* This pseudo element forces the carousel to hold height *!*/
/*.full-content .carousel::before {*/
/*    content: "";*/
/*    display: block;*/
/*    padding-top: 1000px; !* 👈 matches your intended slide height *!*/
/*}*/

/* ===========================
   Content Carousel (FINAL)
=========================== */
.full-content {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Keep the wrapper tall based on active slide */
.full-content .carousel {
    position: relative;
    width: 100%;
}

/* Base slide style */
.full-content .carousel-slide {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: nowrap;
    text-align: left;

    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Active slide */
.full-content .carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: relative;  /* 👈 This is the trick: active slide participates in layout */
    z-index: 2;
}

/* Text + image split */
.full-content .carousel-text {
    flex: 0 0 calc(50% - 1rem);
    max-width: none;
}

.full-content .carousel-slide img {
    flex: 0 0 calc(50% - 1rem);
    width: 100%;
    height: 800px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive stacking for mobile */
@media (max-width: 900px) {
    .full-content .carousel-slide {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .full-content .carousel-text,
    .full-content .carousel-slide img {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .full-content .carousel-text {
        order: 2; /* put text below image */
    }

    .full-content .carousel-slide img {
        order: 1;
        width: 100%;
        height: auto;
    }
}


/* ===========================
   Image Carousel (3 at once)
=========================== */
.three-images {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    height: 200px;
}
/* Track for image carousel */
.three-images .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.three-images .carousel-slide {
    flex: 0 0 33.33%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.three-images .carousel-slide img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.5s ease;
    cursor: pointer;
}
.three-images .carousel-slide.active {
    opacity: 1;
}
.three-images .carousel-slide.active img {
    width: 150px;
    height: 150px;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.three-images .carousel-slide.side img {
    width: 120px;
    height: 120px;
    opacity: 0.7;
}

.page-content {
    padding: 40px;
    text-align: center;
}

section[id] {
    scroll-margin-top: 45px; /* Adjust for combined nav height */
}

/* Default: hide theme toggle inside menu on desktop */
.theme-toggle-wrapper {
    display: none;
}

.desktop-only { display: inline-flex; }

/* ===========================
   MOBILE STYLES updated from 768 to 1040
=========================== */
@media (max-width: 1274px) {
    .desktop-only { display: none; }

    .noPipe{
        display: none;
    }

    button:hover{
        background: none;
        color: red;
    }

    .theme-toggle-wrapper {
        display: block;
        margin-top: 10px;
        text-align: right;
    }

    .theme-toggle {
        background: none;
        border: 2px solid var(--nav-link);;
        color: var(--nav-link);
        /*font-size: 1rem;*/
        /*cursor: pointer;*/
        /*padding: 10px;*/
        /*display: inline-flex;*/
        /*align-items: center;*/
        /*gap: 6px;*/
    }

    .theme-toggle:hover {
        /*opacity: 0.8;*/
        transform: none;
    }

    .theme-icon {
        color: var(--nav-link);
    }

    .theme-label {
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: block; /* show hamburger */
        /*top: 50%;*/
    }

    .navbar {
        padding: 15px 20px;
        min-height: 25px;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        width: 28px;
        height: 3px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        /*background: red;*/
        background: var(--nav-bg);
        position: absolute;
        top: 2rem;
        right: 0; /* align dropdown to right */
        width: 200px;
        text-align: right;
        padding: 10px;
        /*gap: 5px;*/
        border-radius: 0 0 0 10px;
    }

    .nav-links.show {
        display: flex; /* shown when toggled */
    }

    .nav-links a {
        padding: 10px 15px;
    }

    /* Prev/Next Buttons */
    .full-content .carousel-prev,
    .full-content .carousel-next {
        top: 20rem;
    }

    /*.full-content .carousel-slide {*/
    /*    height: 1400px;*/
    /*}*/

    .see-jason-images img {
        max-width: 90%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    /*.full-content .carousel-slide {*/
    /*    height: 46rem;*/
    /*}*/

    .full-content .carousel-slide img{
        object-fit: contain;
        height: 20rem;
    }

    .full-content .carousel-text{
        max-width: 100%;
        margin-left: 0;
        text-align: left;
    }

    .timeline img {
        max-width: 70%;
        /*height: 80%;*/
    }

    .three-images .carousel-slide.active img {
        width: 100px;
        height: 100px;
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
    .three-images .carousel-slide.side img {
        width: 70px;
        height: 70px;
    }

    .three-images .carousel-slide img {
        width: 70px;
        height: 70px;
    }

    .three-images {
        height: 150px;
    }

    /* Prev/Next Buttons */
    .three-images .carousel-prev,
    .three-images .carousel-next {
        top: 8rem;
    }
}
@media (max-width: 1110px) and (min-width: 505px) {
    .full-content .carousel-slide {
        height: 38rem;
    }
}

@media (max-width: 504px) {
    .full-content .carousel-slide {
        height: 43rem;
    }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: center;
        gap: 80px;
    }
}




