/* ============================================
   VERIFICATION LOG — design system
   Portfolio for Tanvir Ahmed
   Concept: a spec sheet / test-report aesthetic —
   ruled dividers, plain status language, nothing
   claims to be true until it is verified.
   ============================================ */

:root {
    /* Canvas & ink */
    --bg: #E9EDF0;
    --bg-raised: #F5F7F4;
    --ink: #12181C;
    --ink-muted: #4B565C;
    --ink-faint: #7C8790;
    --rule: #C4CDD2;

    /* Signal colors — borrowed from test-status vocabulary */
    --verified: #1B6E4C;
    --progress: #8C5219;
    --alert: #9C3535;
    --on-verified: #F5F7F4;

    /* Type */
    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-body: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

    /* Spacing */
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-2xl: 48px;
    --sp-3xl: 72px;
    --sp-4xl: 104px;

    --gutter: clamp(20px, 5vw, 64px);
    --content-max: 1120px;

    --transition-fast: 140ms ease;
    --transition-base: 220ms ease;
}

[data-theme="dark"] {
    --bg: #14181A;
    --bg-raised: #1B2023;
    --ink: #E7EAE4;
    --ink-muted: #A6AFA9;
    --ink-faint: #6E7772;
    --rule: #2B322F;

    --verified: #4CB483;
    --progress: #D69A52;
    --alert: #E07A7A;
    --on-verified: #12181C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--verified);
    outline-offset: 3px;
}

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ============================================
   BINARY WAVE BACKGROUND
   ============================================ */

.binary-wave {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.launch-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-lg);
}

.launch-mark {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    border: 1.5px solid var(--ink);
    padding: 10px 18px;
    transform: rotate(-3deg);
}

.launch-checks {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    font-size: 0.85rem;
    color: var(--ink-faint);
}

.launch-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.35;
    animation: check-in 0.4s ease forwards;
}

.launch-checks li::before {
    content: '';
    width: 9px;
    height: 9px;
    border: 1.5px solid currentColor;
    flex-shrink: 0;
}

.launch-checks li:nth-child(1) { animation-delay: 0.3s; }
.launch-checks li:nth-child(2) { animation-delay: 0.85s; }
.launch-checks li:nth-child(3) { animation-delay: 1.4s; }

@keyframes check-in {
    to {
        opacity: 1;
        color: var(--verified);
    }
}

.launch-progress {
    width: 200px;
    height: 2px;
    background: var(--rule);
    overflow: hidden;
}

.launch-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--verified);
    animation: fill-bar 1.8s ease forwards;
}

@keyframes fill-bar {
    to { width: 100%; }
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.navbar.is-scrolled {
    border-bottom-color: var(--rule);
    background: var(--bg-raised);
}

.scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
}

.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--verified);
}

.nav-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--sp-md) var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-lg);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.nav-brand-mark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--ink);
    padding: 3px 8px;
    line-height: 1;
}

.nav-brand-name {
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.nav-link {
    font-size: 0.85rem;
    color: var(--ink-muted);
    padding-bottom: 2px;
    border-bottom: 1.5px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link.active-nav {
    color: var(--ink);
    border-bottom-color: var(--verified);
}

.theme-toggle {
    font-size: 0.8rem;
    border: 1.5px solid var(--rule);
    padding: 6px 14px;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--ink);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 26px;
}

.hamburger span {
    height: 1.5px;
    width: 100%;
    background: var(--ink);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding: calc(var(--sp-4xl) + 40px) 0 var(--sp-3xl);
}

.hero-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--sp-4xl);
    align-items: start;
}

.hero-text {
    order: 1;
}

.hero-image {
    order: 2;
    align-self: center;
    margin-top: var(--sp-1xl);
    width: 540px;
    height: 540px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 1.5px solid var(--rule);
    animation: hero-image-reveal 900ms var(--transition-base) both;
    transition: transform 320ms ease, border-color 320ms ease;
}

.hero-image:hover {
    transform: scale(1.035);
    border-color: var(--verified);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(15%) contrast(1.03);
}

@keyframes hero-image-reveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-image-caption {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--sp-md);
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--verified);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: var(--ink-muted);
    margin-top: var(--sp-sm);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-lg);
    margin-top: var(--sp-lg);
    list-style: none;
}

.hero-meta li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: var(--sp-lg);
    border-left: 1px solid var(--rule);
}

.hero-meta li:first-child {
    padding-left: 0;
    border-left: none;
}

.hero-meta-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.hero-meta-value {
    font-size: 0.85rem;
    color: var(--ink);
}

.hero-description {
    max-width: 62ch;
    margin-top: var(--sp-lg);
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--sp-md);
    margin-top: var(--sp-xl);
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary, .submit-btn, .resume-btn {
    display: inline-block;
    font-size: 0.85rem;
    padding: 12px 22px;
    border: 1.5px solid var(--ink);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.cta-primary, .submit-btn {
    background: var(--verified);
    border-color: var(--verified);
    color: var(--on-verified);
}

.cta-primary:hover, .submit-btn:hover {
    background: transparent;
    color: var(--verified);
}

.cta-secondary, .resume-btn {
    background: transparent;
    color: var(--ink);
}

.cta-secondary:hover, .resume-btn:hover {
    background: var(--ink);
    color: var(--bg);
}

/* ============================================
   QUICK STATS
   ============================================ */

.quick-stats {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.stats-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--sp-xl) var(--gutter);
    display: flex;
}

.stat-card {
    flex: 1;
    padding: 0 var(--sp-xl);
    border-left: 1px solid var(--rule);
}

.stat-card:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
}

.stat-number-suffix {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ink-faint);
    margin-left: 2px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    /* every section above already closes with sp-4xl of its own
       bottom padding, so the footer only needs a modest nudge, not
       a second helping of the same clearance */
    border-top: 1px solid var(--rule);
    margin-top: var(--sp-xl);
}

/* the home page's stats bar already closes with its own rule, so the
   usual pre-footer clearance just doubles up as dead space, and the
   two rules back to back would read as a stray double line */
.quick-stats:has(+ .footer) {
    border-bottom: none;
}

.quick-stats + .footer {
    margin-top: var(--sp-lg);
}

.footer-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--sp-xl) var(--gutter);
}

.footer-socials {
    display: flex;
    gap: var(--sp-xl);
    flex-wrap: wrap;
}

.social-link {
    font-size: 0.8rem;
    color: var(--ink-muted);
    border-bottom: 1px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.social-link:hover {
    color: var(--verified);
    border-bottom-color: var(--verified);
}

/* ============================================
   SECTION HEADERS (shared)
   ============================================ */

.about-section, .skills-section, .projects-section, .experience-section,
.certifications-section, .contact-section {
    padding: var(--sp-4xl) 0;
}

.about-section, .certifications-section {
    padding-top: var(--sp-3xl);
}

section + section {
    border-top: 1px solid var(--rule);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-subtitle {
    font-size: 0.92rem;
    color: var(--ink-muted);
    max-width: 62ch;
    margin-top: var(--sp-md);
    line-height: 1.8;
}

.subsection-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.4rem;
    font-weight: 400;
    margin: var(--sp-2xl) 0 var(--sp-lg);
}

/* body pages start below fixed nav */
.about-section, .projects-section, .experience-section, .contact-section {
    margin-top: 88px;
}

/* so a nav click's scrollIntoView() lands below the fixed nav instead of
   tucking the section's heading behind it */
.hero, .about-section, .projects-section, .experience-section, .contact-section {
    scroll-margin-top: 88px;
}

/* seamless page flow: a page spliced in mid-scroll isn't under the fixed
   nav, so it doesn't need the clearance the same section gets on load */
.is-continued-section {
    margin-top: 0 !important;
}

/* ============================================
   ABOUT
   ============================================ */

.about-content {
    margin-top: var(--sp-xl);
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--sp-4xl);
    align-items: start;
}

.about-text {
    order: 1;
}

.about-image {
    order: 2;
    justify-self: end;
    width: 400px;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--rule);
    animation: hero-image-reveal 900ms var(--transition-base) both;
    transition: transform 320ms ease, border-color 320ms ease;
}

.about-image:hover {
    transform: scale(1.02);
    border-color: var(--verified);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(15%) contrast(1.03);
}

.about-text h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: var(--sp-md);
}

.about-text p {
    max-width: 68ch;
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: var(--sp-lg);
}

/* ============================================
   SKILLS
   ============================================ */

.skills-grid {
    margin-top: var(--sp-xl);
}

.skill-category {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--sp-xl);
    padding: var(--sp-lg) 0;
    border-top: 1px solid var(--rule);
    align-items: baseline;
}

.skill-category:last-child {
    border-bottom: 1px solid var(--rule);
}

.category-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.skill-badge {
    font-size: 0.78rem;
    padding: 5px 10px;
    border: 1px solid var(--rule);
    color: var(--ink-muted);
}

/* ============================================
   PROJECTS
   ============================================ */

.projects-grid {
    margin-top: var(--sp-xl);
    display: grid;
    gap: var(--sp-lg);
}

.project-card {
    border: 1.5px solid var(--rule);
    padding: var(--sp-lg) var(--sp-xl);
    transition: border-color var(--transition-fast);
}

.project-card:hover {
    border-color: var(--ink-faint);
}

.project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-md);
}

.project-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.2rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    padding: 3px 9px;
    border: 1px solid currentColor;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
}

.status--progress { color: var(--progress); }
.status--done { color: var(--verified); }
.status--course { color: var(--ink-faint); }

.project-tags {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-md);
}

.tag {
    font-size: 0.72rem;
    padding: 4px 9px;
    border: 1px solid var(--rule);
    color: var(--ink-muted);
}

.project-description {
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.85;
}

.project-description strong {
    color: var(--ink);
}

.project-links {
    margin-top: var(--sp-md);
    display: flex;
    gap: var(--sp-lg);
}

.project-link {
    font-size: 0.85rem;
    border-bottom: 1px solid var(--ink-faint);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.project-link:hover {
    color: var(--verified);
    border-color: var(--verified);
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */

.timeline {
    margin-top: var(--sp-lg);
    border-left: 1.5px solid var(--rule);
    padding-left: var(--sp-xl);
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--sp-xl) - 5px);
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--verified);
}

.timeline-date {
    font-size: 0.78rem;
    color: var(--ink-faint);
    margin-bottom: 4px;
}

.timeline-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
}

.timeline-company {
    font-style: italic;
    font-family: var(--font-display);
    color: var(--ink-muted);
    font-size: 0.95rem;
    margin-top: 2px;
}

.timeline-description {
    margin-top: var(--sp-sm);
    color: var(--ink-muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */

.certifications-grid {
    margin-top: var(--sp-xl);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--sp-lg);
}

.certification-card {
    border: 1.5px solid var(--rule);
    display: flex;
    flex-direction: column;
}

.cert-image-container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1.5px solid var(--rule);
}

.cert-course-banner {
    border-bottom-color: var(--progress);
    border-bottom-width: 3px;
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(8%);
}

.cert-title, .cert-issuer, .cert-date, .cert-description, .cert-code, .cert-link {
    padding: 0 var(--sp-md);
}

.cert-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    margin-top: var(--sp-md);
}

.cert-issuer {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 6px;
}

.cert-date {
    font-size: 0.75rem;
    color: var(--ink-faint);
    margin-top: 2px;
}

.cert-description {
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-top: var(--sp-sm);
}

.cert-code {
    font-size: 0.72rem;
    color: var(--ink-faint);
    margin-top: 4px;
}

.cert-link {
    display: inline-block;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--ink-faint);
    margin: var(--sp-md) var(--sp-md) var(--sp-lg);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.cert-link:hover {
    color: var(--verified);
    border-color: var(--verified);
}

/* ============================================
   CERTIFICATE MODAL / ALERT MODAL
   ============================================ */

.cert-modal, .alert-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--sp-lg);
}

.cert-modal.active, .alert-modal.active {
    display: flex;
}

.cert-modal-content {
    position: relative;
    max-width: min(90vw, 720px);
}

.cert-modal-image {
    width: 100%;
    border: 1.5px solid var(--rule);
}

.cert-modal-close {
    position: absolute;
    top: -34px;
    right: 0;
    color: #fff;
    font-size: 1.5rem;
    border: 1.5px solid #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.alert-content {
    background: var(--bg-raised);
    border: 1.5px solid var(--rule);
    border-left: 3px solid var(--ink);
    padding: var(--sp-xl);
    max-width: 380px;
}

.alert-content.is-success {
    border-left-color: var(--verified);
}

.alert-content.is-error {
    border-left-color: var(--alert);
}

.alert-content h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    margin-bottom: var(--sp-sm);
}

.alert-content p {
    color: var(--ink-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.alert-btn {
    margin-top: var(--sp-lg);
    border: 1.5px solid var(--ink);
    padding: 8px 18px;
    font-size: 0.82rem;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-container {
    margin-top: var(--sp-xl);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-3xl);
}

.contact-form-wrapper h2, .contact-info h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: var(--sp-lg);
}

.form-group {
    margin-bottom: var(--sp-lg);
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin-bottom: 6px;
    transition: color var(--transition-fast);
}

.form-group.is-focused label {
    color: var(--verified);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--rule);
    padding: 8px 2px;
    transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--verified);
}

.form-group textarea {
    resize: vertical;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--ink-faint);
}

.contact-info {
    border: 1.5px solid var(--rule);
    padding: var(--sp-xl);
}

.info-item {
    padding: var(--sp-md) 0;
    border-top: 1px solid var(--rule);
}

.info-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.info-item h3 {
    font-size: 0.78rem;
    color: var(--ink-faint);
    margin-bottom: 4px;
}

.info-item a, .info-item p {
    font-size: 0.92rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.social-btn {
    font-size: 0.78rem;
    border: 1px solid var(--rule);
    padding: 6px 12px;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.social-btn:hover {
    background: var(--verified);
    border-color: var(--verified);
    color: var(--on-verified);
}

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
}

.info-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

.copy-btn {
    font-size: 0.72rem;
    border: 1px solid var(--rule);
    padding: 4px 10px;
    color: var(--ink-muted);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.copy-btn:hover {
    border-color: var(--verified);
    color: var(--verified);
}

.copy-btn:disabled {
    border-color: var(--verified);
    color: var(--verified);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
    }

    .hero-image {
        order: 0;
        align-self: center;
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .hero-text {
        order: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

    .about-image {
        order: 0;
        justify-self: center;
        width: 220px;
    }

    .about-text {
        order: 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .skill-category {
        grid-template-columns: 1fr;
        gap: var(--sp-sm);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-raised);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: var(--sp-sm) 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .nav-menu.active {
        max-height: 320px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: var(--sp-md) var(--gutter);
        border-bottom: none;
    }

    .nav-link.active-nav {
        color: var(--verified);
    }

    .hamburger {
        display: flex;
    }

    .stats-container {
        flex-direction: column;
        gap: var(--sp-lg);
    }

    .stat-card {
        border-left: none;
        border-top: 1px solid var(--rule);
        padding: var(--sp-lg) 0 0;
    }

    .stat-card:first-child {
        border-top: none;
        padding-top: 0;
    }

    .hero-meta {
        flex-direction: column;
        gap: var(--sp-md);
    }

    .hero-meta li {
        border-left: none;
        border-top: 1px solid var(--rule);
        padding: var(--sp-sm) 0 0;
    }

    .hero-meta li:first-child {
        border-top: none;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .cta-primary, .cta-secondary {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .launch-checks li {
        opacity: 1;
        color: var(--verified);
    }

    .binary-wave {
        display: none;
    }
}
