/* ============================================
   TOGGLE BAR
   the pill-shaped button bar
============================================ */

.toggle-bar {
    display: flex;
    gap: 8px;
    background: #000;
    border: 1px solid #0000ff;
    border-radius: 999px;
    padding: 6px;
    margin: 30px 0 20px;
    width: fit-content;
}

.toggle-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

/* the active button gets the blue fill */
.toggle-btn.active {
    background: #0000ff;
    color: #fff;
}


/* ============================================
   VERSION VISIBILITY
   hides and shows each version
============================================ */

/* every version div starts hidden */
.version {
    display: none;
}

/* only the one with "visible" added shows */
.version.visible {
    display: block;
}


/* ============================================
   WITHOUT AI — plain styles
   kept intentionally simple
============================================ */

#without-ai {
    padding: 20px 0;
}

#without-ai h1 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #fff;
}

#without-ai p {
    color: #aaa;
    font-size: 15px;
    margin-bottom: 24px;
}

#without-ai h2 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    margin-top: 24px;
    color: #fff;
}

#without-ai ul {
    padding-left: 20px;
    color: #aaa;
}

#without-ai ul li {
    font-size: 15px;
    line-height: 2.2;
}

/* force the without-ai headings to use Inter instead of BBH Bartle */
#without-ai h2 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    text-align: left;
}

/* ============================================
   WITH AI — polished styles
============================================ */

#with-ai {
    padding: 20px 0;
}

/* --- header --- */

.ai-page-header {
    margin-bottom: 50px;
}

#with-ai .ai-page-header h1 {
    font-family: 'BBH Bartle', cursive;
}

.ai-page-header h1 {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 12px;
}

/* letters start invisible and off-position */
.ai-page-header h1 .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: none;
}

/* animation only fires when JS adds the "animate" class */
.ai-page-header h1 .letter.animate {
    animation: slideUp 0.6s ease forwards;
}

/* each letter gets a slightly later delay using nth-child */
/* this creates the one-by-one writing effect */
.ai-page-header h1 .letter.animate:nth-child(1)  { animation-delay: 0.00s; }
.ai-page-header h1 .letter.animate:nth-child(2)  { animation-delay: 0.07s; }
.ai-page-header h1 .letter.animate:nth-child(3)  { animation-delay: 0.15s; }
.ai-page-header h1 .letter.animate:nth-child(4)  { animation-delay: 0.22s; }
.ai-page-header h1 .letter.animate:nth-child(5)  { animation-delay: 0.30s; }
.ai-page-header h1 .letter.animate:nth-child(6)  { animation-delay: 0.37s; }
.ai-page-header h1 .letter.animate:nth-child(7)  { animation-delay: 0.44s; }
.ai-page-header h1 .letter.animate:nth-child(8)  { animation-delay: 0.51s; }
.ai-page-header h1 .letter.animate:nth-child(9)  { animation-delay: 0.58s; }
.ai-page-header h1 .letter.animate:nth-child(10) { animation-delay: 0.65s; }

.ai-page-header .subtitle {
    font-size: 15px;
    color: #888;
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.ai-page-header .subtitle.animate {
    opacity: 1;
}

/* --- section label --- */

.ai-section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0000ff;
    margin-bottom: 18px;
}

/* --- skill cards grid --- */

.ai-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    border: 1px solid #0000ff;
    margin-bottom: 50px;
}

.ai-skill-card {
    padding: 24px 20px;
    border-right: 1px solid #0000ff;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.ai-skill-card:last-child {
    border-right: none;
}

.ai-skill-card:hover {
    background: #0000ff10;
}

/* the blue accent bar that slides up on hover */
.ai-skill-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0000ff;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.ai-skill-card:hover::before {
    transform: scaleY(1);
}

.ai-skill-card .number {
    font-size: 11px;
    color: #444;
    margin-bottom: 10px;
}

.ai-skill-card .skill-name {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
}

/* --- two column layout --- */

.ai-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* on small screens, stack the columns vertically */
@media (max-width: 600px) {
    .ai-two-col {
        grid-template-columns: 1fr;
    }
}

/* --- list items --- */

.ai-list ul {
    list-style: none;
    padding: 0;
}

.ai-list ul li {
    padding: 12px 0;
    border-bottom: 1px solid #111;
    font-size: 14px;
    color: #ccc;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.ai-list ul li:hover {
    color: #fff;
}

/* the small blue dot before each list item */
.ai-list ul li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0000ff;
    flex-shrink: 0;
}

/* --- tool pills --- */

.ai-tools-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-pill {
    padding: 9px 18px;
    border: 1px solid #0000ff;
    border-radius: 999px;
    font-size: 13px;
    color: #fff;
    transition: background 0.2s ease;
    cursor: default;
}

.tool-pill:hover {
    background: #0000ff;
}

/* claude gets a pre-filled blue pill */
.tool-pill.preferred {
    background: #0000ff;
    position: relative;
}

/* the tiny "preferred" label floating above the pill */
.tool-pill.preferred::after {
    content: 'preferred';
    position: absolute;
    top: -8px;
    right: 8px;
    font-size: 9px;
    letter-spacing: 0.08em;
    color: #0000ff;
    text-transform: uppercase;
}

/* --- divider line --- */

.ai-divider {
    border: none;
    border-top: 1px solid #111;
    margin: 0 0 36px;
}

/* --- the slideUp animation used by the letters --- */

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}