/* Hero Section */
.hero {
    min-height: 40vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 8vh;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-title .text-rust {
    color: var(--rust-primary);
    text-shadow: 0 0 30px rgba(206, 66, 43, 0.3);
}

.hero-title .text-teal {
    color: var(--accent-secondary);
    text-shadow: 0 0 30px rgba(20, 184, 166, 0.3);
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 2rem 0 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--rust-primary);
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    text-transform: uppercase;
    opacity: 0.9;
    text-align: center;
    background: linear-gradient(135deg, var(--rust-primary), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: grid;
    grid-template-columns: 4rem 1fr 3rem;
    align-items: flex-start;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.1);
}

/* Glowing accent bar on left */
.service-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--rust-primary);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    /* Same as the grid column width */
    height: 3rem;
    padding-top: 0.25rem;
}

.service-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(206, 66, 43, 0.3));
    /* Rust glow */
}

.service-item:hover .service-icon {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(206, 66, 43, 0.6));
}

.service-content {
    padding-right: 2rem;
}

.service-title {
    font-family: "interbureautitle", sans-serif;
    /* Overriding mokoto for readability if needed, or keep mokoto */
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.service-item:hover .service-title {
    color: var(--rust-accent);
    text-shadow: 0 0 20px rgba(206, 66, 43, 0.4);
}

.service-description {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 0;
    transition: opacity 0.3s ease;
}

.service-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
    opacity: 0;
}

.service-details.expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 1.5rem;
}

.service-details > p {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 1.1rem;
    /* Increased from 0.95rem */
    line-height: 1.7;
    white-space: pre-line;
}

.service-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.service-arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition:
        transform 0.4s ease,
        color 0.3s ease;
}

.service-item:hover .service-arrow {
    transform: translateX(5px);
    color: var(--rust-primary);
}

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 3rem 1fr 2rem;
        padding: 1.5rem;
    }

    .service-content {
        padding-right: 1rem;
    }

    .service-title {
        font-size: 1.25rem;
    }
}

/* Contact Section */
.contact {
    /* background-color: var(--bg-primary); Removed to show particles */
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    max-width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    color: var(--rust-primary);
    background: var(--bg-surface);
}

.contact-info-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contact-info-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-value:hover {
    color: var(--rust-primary);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

.status-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.status-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.status-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Tech Stack Showcase Slider */
.tech-stack {
    padding: 4rem 0;
    overflow: hidden;
}

.tech-slider {
    position: relative;
    width: 100%;
    margin-top: 3rem;
    overflow: hidden;
}

/* Gradient fades for the edges */
.tech-slider::before,
.tech-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.tech-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.tech-slider-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.tech-slider:hover .tech-slider-track {
    animation-play-state: paused;
}

.tech-slide {
    width: 300px;
    /* Fixed width for stability */
    flex-shrink: 0;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .tech-slide {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .tech-slide {
        width: 200px;
    }
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    text-align: center;
    height: 100%;
    cursor: pointer;
}

.tech-card:hover {
    border-color: var(--accent-secondary);
    background: var(--bg-elevated);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.1);
}

.tech-icon-wrapper {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--rust-primary);
}

.tech-icon {
    width: 100%;
    height: 100%;
}

.tech-name {
    font-family: "interbureautitle", sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move by half the track width (the original list length) */
        transform: translateX(-50%);
    }
}

.tech-description-container {
    margin-top: 2rem;
    position: relative;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.tech-description-content {
    width: 100%;
    max-width: 900px;
    position: relative;
    text-align: center;
    min-height: 200px;
}

.particles-wrapper {
    position: relative;
    z-index: 2;
    pointer-events: none;
    animation: fadeOutSlow 3.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.real-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-family: "interbureautitle", sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0;
    z-index: 1;
    animation: fadeInDelayed 3.5s ease-in-out forwards;
    padding: 0 1rem;
}

@keyframes fadeInDelayed {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translate(-50%, -45%);
    }
    40% {
        opacity: 0;
        filter: blur(5px);
        transform: translate(-50%, -45%);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOutSlow {
    0% {
        opacity: 0.8;
    }
    65% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

.close-description {
    position: absolute;
    top: -1rem;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-description:hover {
    color: var(--accent-secondary);
}

.text-particles-canvas {
    width: 100%;
    height: 200px;
    background: transparent;
}

/* Process Section */
.process {
    padding: 4rem 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 2.75rem;
    top: 4.5rem;
    bottom: -2.5rem;
    width: 2px;
    background: var(--border-color);
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--rust-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "mokoto", sans-serif;
    font-size: 1.25rem;
    flex-shrink: 0;
    z-index: 1;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-description {
    font-family: "interbureautitle", sans-serif;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}
.footer {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    border-top: 2px solid var(--rust-primary);
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero {
        min-height: 50vh;
    }
}

/* Modal Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--bg-surface);
    border: 1px solid var(--rust-primary);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 0 30px rgba(206, 66, 43, 0.2);
    animation: slideUp 0.3s ease-out;
    text-align: center;
}

.modal-title {
    font-family: "mokoto", sans-serif;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.modal-body {
    font-family: "interbureautitle", sans-serif;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* Typewriter specific styles */
.typewriter-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.cursor {
    display: inline-block;
    width: 8px;
    background-color: var(--rust-primary);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.service-full-description .typewriter-text {
    font-family: "interbureautitle", sans-serif;
}

/* Force canvas to be between background and content */
.particles-canvas {
    z-index: 0 !important;
}

/* ─────────────────────────────────────────────
   Scroll Reveal Animations
   ───────────────────────────────────────────── */
.section-reveal {
    opacity: 0;
}

.section-reveal.revealed {
    animation: revealUp 0.7s ease-out forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────────
   Navigation Bar
   ───────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    font-family: "mokoto", sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.logo-bracket {
    color: var(--rust-primary);
    font-size: 1.4rem;
}

.logo-text {
    color: var(--text-primary);
}

/* Desktop nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--rust-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    background: var(--accent-secondary);
}

.nav-cta {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Hamburger (mobile only) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile sidebar backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 110;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-backdrop.visible {
    opacity: 1;
}

/* Mobile sidebar */
.nav-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 120;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.nav-sidebar.open {
    transform: translateX(0);
}

.nav-sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 5rem 2rem 2rem;
}

.nav-sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.nav-sidebar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.nav-sidebar-links a:hover {
    color: var(--rust-primary);
}

.nav-sidebar-cta {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.75rem 2rem;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-backdrop {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-backdrop.visible {
        opacity: 1;
        pointer-events: all;
    }

    .nav-sidebar {
        display: block;
    }
}

/* ─────────────────────────────────────────────
   Hero Actions (CTAs)
   ───────────────────────────────────────────── */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: "interbureautitle", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--rust-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
    background: transparent;
    color: var(--rust-primary);
}

.btn-outline:hover {
    background: rgba(20, 184, 166, 0.1);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.2);
    border-color: var(--accent-secondary);
}

/* ─────────────────────────────────────────────
   Stats Bar
   ───────────────────────────────────────────── */
.stats {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    transition: var(--transition);
}

.stat-value {
    font-family: "mokoto", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--rust-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─────────────────────────────────────────────
   About Section
   ───────────────────────────────────────────── */
.about {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-paragraph {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-edit-note {
    color: var(--rust-primary);
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1.5rem;
}

.about-code-block {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: "SF Mono", "Fira Code", "Fira Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.9;
    overflow-x: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.code-line.indent {
    padding-left: 1.5rem;
}

.code-line.indent-2 {
    padding-left: 3rem;
}

.code-comment {
    color: #6b7280;
    font-style: italic;
}

.code-keyword {
    color: var(--rust-primary);
}

.code-fn {
    color: var(--accent-secondary);
}

.code-type {
    color: #34d399;
}

.code-var {
    color: #fbbf24;
}

.code-punc {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-code-block {
        font-size: 0.75rem;
    }
}

/* ─────────────────────────────────────────────
   Footer - Social Icons & Details
   ───────────────────────────────────────────── */
.footer-social {
    margin-bottom: 1.5rem;
}

.footer-social-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon-link:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    background: rgba(20, 184, 166, 0.1);
}

.social-placeholder {
    opacity: 0.4;
    border-style: dashed;
}

.social-placeholder:hover {
    opacity: 0.8;
}

.footer-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-detail-item {
    text-align: center;
}

.footer-detail-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.footer-detail-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-detail-value:hover {
    color: var(--rust-primary);
}

@media (max-width: 480px) {
    .footer-details {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ─────────────────────────────────────────────
   Back to Top
   ───────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rust-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(206, 66, 43, 0.3);
    transition: all 0.3s ease;
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--rust-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(206, 66, 43, 0.4);
}

.back-to-top.visible:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }
}

/* ─────────────────────────────────────────────
   Blog Reader — Content Slides Left, Article Slides In From Right
   ───────────────────────────────────────────── */

/* Whole content wrapper slides left off-screen */
.content-wrapper.reading {
    transform: translateX(-100vw);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrapper {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-section {
    padding: 4rem 0;
}

.blog-section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.blog-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-card {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--accent-secondary);
    background: var(--bg-elevated);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.1);
}

.blog-card-body {
    padding: 1.75rem;
}

.blog-card-title {
    font-family: "mokoto", sans-serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--rust-accent);
}

.blog-card-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-read-more {
    color: var(--rust-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Reader panel slides in from right, content area centred */
.reader-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 50;
    background: transparent;
    display: flex;
    flex-direction: column;
    animation: slideInFromRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(0);
    }
}

.reader-back {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: calc(max(1rem, (100vw - 720px) / 2 - 3rem));
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 60;
}

.reader-back:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.reader-scroll {
    height: 100vh;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.reader-article {
    width: 100%;
    max-width: 720px;
    padding: calc(64px + 2rem) 2rem 3rem;
    background: rgba(26, 26, 26, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.reader-header {
    margin-bottom: 2rem;
    text-align: center;
}

.reader-title {
    font-family: "mokoto", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.reader-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.reader-body {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.reader-body h2 {
    font-family: "mokoto", sans-serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.reader-body p {
    margin-bottom: 1.25rem;
}

.reader-body ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.reader-body li {
    margin-bottom: 0.5rem;
}

.reader-body strong {
    color: var(--text-primary);
}

.reader-body a {
    color: var(--rust-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .reader-article {
        padding: calc(64px + 1.5rem) 1.25rem 2rem;
    }

    .reader-back {
        top: 50%;
        left: 0.75rem;
    }
}
