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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-transform: none;
    font-weight: 700;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.15;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero-title .text-accent {
    color: var(--rust-text);
}

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

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

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.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: "Poppins", sans-serif;
    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-text);
}

.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: 1rem;
    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-text);
}

@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-text);
    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-text);
}

.contact-info-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.4);
    background: rgba(37, 211, 102, 0.1);
    transition: var(--transition);
    flex-shrink: 0;
}

.whatsapp-link:hover {
    color: #25d366;
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-1px);
}

@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: 3rem 0;
    overflow: hidden;
}

.tech-stack-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.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-text);
}

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

.tech-name {
    font-family: "Poppins", 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%);
    }
}

/* ─────────────────────────────────────────────
   Case Studies
   ───────────────────────────────────────────── */
.case-studies {
    padding: 4rem 0;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.case-study-card {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.case-study-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.case-study-type {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-secondary);
    background: rgba(20, 184, 166, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.case-study-status {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(107, 114, 128, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
}

.case-study-status-rescue {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.case-study-status-amber {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}

.case-study-confidential {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
}

.case-study-name {
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.case-study-tagline {
    color: var(--rust-text);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.case-study-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.case-study-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.case-study-highlight {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.highlight-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 60px;
}

.highlight-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--rust-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-link:hover,
.blog-card:hover .blog-card-title {
    color: #f9907a;
}

.case-study-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2.5rem 2rem 2rem;
    flex: 1 1 320px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--rust-text);
    box-shadow: 0 4px 20px rgba(206, 66, 43, 0.08);
}

.testimonial-quote-mark {
    font-family: "Poppins", sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--rust-text);
    opacity: 0.85;
    margin-bottom: 0.5rem;
    user-select: none;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    flex: 1;
}

.testimonial-attribution {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-logo {
    height: 44px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: #0f172a;
    padding: 8px 10px;
    filter: grayscale(1);
    opacity: 1;
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-logo {
    filter: grayscale(0);
    opacity: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.testimonial-company {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 2rem 1.5rem 1.5rem;
    }
}

/* 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: "Poppins", 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 {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}
.footer {
    /* Darkest base grounding the near-black page — re-scope tokens locally */
    --bg-surface: #0b0f16;
    --bg-elevated: #121826;
    --text-primary: #e2e8f0;
    --text-secondary: #aeb8c6;
    --text-muted: #9aa5b5;
    --border-color: #1e2634;
    background: linear-gradient(180deg, #070a10, #0b101a);
    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: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    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: "Poppins", sans-serif;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.modal-body {
    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;
    }
}

/* 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(8, 11, 17, 0.82);
    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.6rem;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--rust-primary);
    border-radius: 8px;
    flex-shrink: 0;
    gap: 0;
}

.logo-char-lt,
.logo-char-slash,
.logo-char-gt {
    font-family: "SF Mono", "Monaco", "Courier New", monospace;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 0.5px currentColor;
    paint-order: stroke fill;
}

.logo-char-lt::before {
    content: "<";
    color: #1a1a1a;
    -webkit-text-stroke: 0.8px #1a1a1a;
}

.logo-char-slash::before {
    content: "/";
    color: var(--accent-secondary);
    display: inline-block;
    transform: scaleY(1.5);
    -webkit-text-stroke: 0.8px var(--accent-secondary);
}

.logo-char-gt::before {
    content: ">";
    color: #1a1a1a;
    -webkit-text-stroke: 0.8px #1a1a1a;
}

.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: rgba(8, 11, 17, 0.95);
    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-text);
}

.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: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--rust-text);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
    background: transparent;
    color: var(--rust-text);
}

.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: "Poppins", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--rust-text);
    font-weight: 700;
    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: start;
    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-stats-row {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.about-stat {
    display: flex;
    flex-direction: column;
}

.about-stat-value {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rust-text);
    line-height: 1.2;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.about-values-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
}

.about-value-item h4 {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.about-value-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

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

    .about-stats-row {
        gap: 1.5rem;
    }

    .about-stat-value {
        font-size: 1.5rem;
    }
}

/* ─────────────────────────────────────────────
   Footer Details
   ───────────────────────────────────────────── */
.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-text);
}

@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-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.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;
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.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-text);
    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(8, 11, 17, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.reader-title {
    font-family: "Poppins", 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: "Poppins", 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-text);
    text-decoration: underline;
}

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

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

/* ─────────────────────────────────────────────
   Glass card surfaces
   The bg tokens are translucent rgba whites; backdrop-filter
   is what turns them into frosted glass. Applied to every
   card/container that paints with those tokens.
   ───────────────────────────────────────────── */
.service-item,
.tech-card,
.case-study-card,
.blog-card,
.testimonial-card,
.process-step,
.stat-item,
.about-values-card,
.contact-info-icon,
.reader-back {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ─────────────────────────────────────────────
   Section micro-labels + word-stagger headings
   ───────────────────────────────────────────── */
.section-label {
    display: block;
    text-align: center;
    color: var(--rust-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.word-heading .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em);
    margin-right: 0.28em;
}

.word-heading .word:last-child {
    margin-right: 0;
}

.section-reveal.revealed .word-heading .word {
    animation: wordIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes wordIn {
    from {
        opacity: 0;
        transform: translateY(0.5em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────────
   Animated dashed section divider
   ───────────────────────────────────────────── */
.section-divider {
    max-width: 1000px;
    height: 1px;
    margin: 0 auto;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(20, 184, 166, 0.55) 0,
        rgba(20, 184, 166, 0.55) 4px,
        transparent 4px,
        transparent 10px
    );
    opacity: 0.35;
    animation: dashSweep 3s ease-in-out infinite;
}

@keyframes dashSweep {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

/* ─────────────────────────────────────────────
   Photoreal WebGL globe — layered scene stack
   (mirrors the reference site: bg < scene < backdrop < glow < veil < content)
   ───────────────────────────────────────────── */
.globe-backdrop {
    position: fixed;
    inset: 0;
    z-index: -6;
    pointer-events: none;
    opacity: 0.7;
    background:
        radial-gradient(
            circle at top,
            rgba(59, 130, 246, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            rgba(2, 7, 15, 0.84) 0%,
            rgba(5, 17, 31, 0.78) 46%,
            rgba(3, 10, 19, 0.9) 100%
        );
    will-change: opacity;
}

.globe-scene {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: -8;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.globe-canvas-wrap {
    filter: brightness(1.22) saturate(1.12);
    mix-blend-mode: screen;
    will-change: transform;
}

.globe-canvas {
    display: block;
}

.globe-glow {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
}

.globe-glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    background: rgba(251, 146, 60, 0.25);
    filter: blur(64px);
    opacity: 0.32;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

.globe-veil {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    opacity: 0.96;
    background:
        radial-gradient(
            circle at center,
            transparent 0%,
            rgba(2, 8, 20, 0.1) 36%,
            rgba(2, 8, 20, 0.42) 100%
        ),
        linear-gradient(
            180deg,
            rgba(2, 8, 20, 0.58) 0%,
            rgba(6, 18, 34, 0.72) 50%,
            rgba(2, 8, 20, 0.84) 100%
        );
    will-change: opacity;
}

/* ─────────────────────────────────────────────
   Case study 3D tilt cards
   ───────────────────────────────────────────── */
.case-study-card {
    position: relative;
    transform-style: preserve-3d;
    transition:
        transform 0.2s ease-out,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .case-study-card {
        transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    }
}

.case-study-card:hover {
    border-color: rgba(234, 88, 12, 0.45);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(206, 66, 43, 0.08);
}

.case-study-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
        420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(234, 88, 12, 0.1),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-study-card:hover::after {
    opacity: 1;
}

/* ─────────────────────────────────────────────
   Side section dot-nav
   ───────────────────────────────────────────── */
.side-nav {
    position: fixed;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.side-nav-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.side-nav-dot:hover {
    border-color: var(--rust-text);
    transform: scale(1.3);
}

.side-nav-dot.active {
    background: var(--rust-primary);
    border-color: var(--rust-primary);
    box-shadow: 0 0 12px rgba(206, 66, 43, 0.6);
}

.side-nav-label {
    position: absolute;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.side-nav-dot:hover .side-nav-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

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

/* ─────────────────────────────────────────────
   Progress-ring back-to-top
   ───────────────────────────────────────────── */
.back-to-top {
    background: rgba(10, 14, 20, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top:hover {
    background: rgba(14, 18, 28, 0.95);
    border-color: var(--rust-text);
}

.progress-ring {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.progress-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2;
}

.progress-ring-bar {
    fill: none;
    stroke: var(--rust-primary);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s linear;
}

.back-to-top svg.arrow {
    position: relative;
    z-index: 1;
}

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

    .word-heading .word {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
