@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: "Roboto Condensed", sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--card-border) var(--bg-color);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Modal Specific Scrollbar Track */
.project-modal__content::-webkit-scrollbar-track {
    background: var(--card-bg);
}

/* Accessibility Skip Link styling */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 12px 24px;
    z-index: 1000;
    transition: top 0.2s ease;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.skip-link:focus-visible {
    top: 0;
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Custom Visible Focus Ring for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 4px !important;
}

/* THEME VARIABLES (EYE-CARE MINIMALISM) */
:root {
    --bg-color: #f5f5f7;
    --text-color: #27272a;
    --card-bg: #ffffff;
    --card-border: #e4e4e7;
    --accent: #4b5563;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.05), 0 4px 8px rgba(0, 0, 0, 0.02);
    --link-bg-color: #f4f4f5;
    --border-radius: 4px;
}

body.dark {
    --bg-color: #18181b;
    --text-color: #e4e4e7;
    --card-bg: #27272a;
    --card-border: #3f3f46;
    --accent: #a1a1aa;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    --link-bg-color: #3f3f46;
}

body {
    background: var(--bg-color) !important;
    color: var(--text-color);
    transition: background 0.4s ease, color 0.4s ease;
    line-height: 1.5;
    min-height: 100vh;
}

.page {
    max-width: 56rem;
    margin: auto;
    padding: 48px 20px;
}

.u-margin-bottom {
    margin-bottom: 24px;
}

/* Theme Toggle Button */
button#themeToggle {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-color);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

button#themeToggle:hover {
    background: var(--link-bg-color);
    transform: rotate(180deg) scale(1.05);
    border-color: var(--accent);
}

/* Card General Styling */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.card h2 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Profile / Header */
.profile__info {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile__image {
    width: 100%;
    max-width: 170px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile__image:hover {
    transform: scale(1.03) rotate(-0.5deg);
    box-shadow: var(--shadow-hover);
}

.profile__details {
    flex: 1 1 0%;
    min-width: 0;
}

.profile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.profile__location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    opacity: 0.75;
}

.job {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent);
}

/* Action Buttons */
.profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile__button {
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.profile__button a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

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

.profile__button--primary a {
    color: var(--bg-color);
}

.profile__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.1);
}

.profile__button--secondary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.profile__button--secondary a {
    color: var(--text-color);
}

.profile__button--secondary:hover {
    background: var(--link-bg-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

/* About Section */
.about p {
    opacity: 0.85;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Dynamic self-adjusting Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 8px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--card-border);
}

.timeline__item {
    position: relative;
    margin-bottom: 24px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background-color: var(--card-bg);
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline__item:nth-child(1) .timeline__marker {
    background-color: var(--accent);
}

.timeline__item:hover .timeline__marker {
    background-color: var(--accent);
    transform: scale(1.2);
}

.timeline__content {
    padding-left: 8px;
}

.timeline__content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Tech Stack Section */
.tech__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tech__header h2 {
    margin-bottom: 0;
}

.tech__header a,
.projects__header a {
    text-decoration: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}

.tech__header a:hover,
.projects__header a:hover {
    text-decoration: underline;
}

.tech .stacks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech .stacks h3 {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.frontend__tech,
.backend__tech,
.dev__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.frontend__tech span,
.backend__tech span,
.dev__tech span {
    background-color: var(--link-bg-color);
    border: 1px solid var(--card-border);
    padding: 8px 14px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: all 0.25s ease;
    cursor: default;
    color: var(--text-color);
}

.frontend__tech span:hover,
.backend__tech span:hover,
.dev__tech span:hover {
    background-color: var(--accent);
    color: var(--card-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Projects Section */
.projects__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.projects__header h2 {
    margin-bottom: 0;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    position: relative;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.project-card a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card__image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card__image {
    transform: scale(1.04);
}

.project-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card__body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-card__body h3::after {
    content: '→';
    font-family: inherit;
    font-size: 1.3rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent);
}

.project-card:hover h3::after {
    opacity: 1;
    transform: translateX(0);
}

.project-card__body p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 12px;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 12px;
}

.project-card__tags span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    background-color: var(--link-bg-color);
    color: var(--text-color);
}

.project-card .project__link {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--border-radius);
    background-color: var(--link-bg-color);
    color: var(--accent);
    width: fit-content;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.project-card:hover .project__link {
    background-color: var(--accent);
    color: var(--card-bg);
}

.project-card .project__link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project__link i {
    transform: translate(1px, -1px);
}

/* Socials Section */
.social__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.social__card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    padding: 14px !important;
    background-color: var(--card-bg);
}

.social__card i {
    font-size: 1.2rem;
    color: var(--accent);
}

/* Gallery Section */
.gallery__wrapper {
    position: relative;
}

.gallery__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
}

.gallery__track::-webkit-scrollbar {
    display: none;
}

.gallery__track img {
    flex: 0 0 auto;
    width: 260px;
    height: 170px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery__track img:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    font-size: 18px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__btn:hover {
    background: var(--link-bg-color);
    border-color: var(--accent);
}

.gallery__btn.left {
    left: -10px;
}

.gallery__btn.right {
    right: -10px;
}

/* Image Preview Modal */
.img__modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(24, 24, 27, 0.9);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}

.img__modal img {
    max-width: 95%;
    max-height: 85%;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-hover);
    animation: zoomIn 0.3s ease;
}

.close__modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: white;
    cursor: pointer;
}

.close__modal:hover {
    color: var(--accent);
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    padding: 24px 20px;
    border-top: 1px solid var(--card-border);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Back to Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

#backToTopBtn.show-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background: var(--link-bg-color);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* View Header & Back Button */
.view-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.view-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 8px 18px;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.back-btn:hover {
    background: var(--link-bg-color);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

#techstack-view .stacks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Page Bento-Grid Layout System */
.page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.page__grid>* {
    min-width: 0;
}

/* Responsive Grid Breakpoints */
@media (min-width: 801px) {
    .page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .about {
        grid-column: span 2;
    }

    .experience {
        grid-column: 1;
        grid-row: 2;
    }

    .tech {
        grid-column: 2;
        grid-row: 2 / span 2;
    }

    .social {
        grid-column: 1;
        grid-row: 3;
    }

    .projects {
        grid-column: span 2;
    }

    .gallery {
        grid-column: span 2;
    }

    .services {
        grid-column: span 2;
    }

    .services-process {
        grid-column: span 2;
    }

    .services-guarantees {
        grid-column: span 2;
    }
}

@media (max-width: 800px) {
    .page {
        padding: 24px 16px;
    }

    .profile__info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile__image {
        display: block;
        max-width: 140px;
    }

    .profile__header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .profile__location {
        justify-content: center;
    }

    .profile__actions {
        justify-content: center;
    }

    .projects__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .social__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery__track img {
        width: 220px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    #backToTopBtn {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.6rem;
    }

    .profile__actions {
        flex-direction: column;
        width: 100%;
    }

    .profile__button {
        width: 100%;
    }

    .profile__button a {
        justify-content: center;
    }
}

/* Expandable Tech Tags */
.tech-tag--hidden {
    display: none !important;
}

.tech-tags-toggle {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    background-color: var(--link-bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tech-tags-toggle:hover {
    background-color: var(--accent);
    color: var(--card-bg);
    border-color: var(--accent);
}

/* Card Headings Icon Styling */
.card h2 i,
.view-header h2 i {
    color: var(--accent);
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
}

/* Background Canvas Animation */
#constellationCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background: transparent;
}

/* Services Section */
.services__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.services__header h2 {
    margin-bottom: 0;
}

.services__inquire-btn {
    text-decoration: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.services__inquire-btn:hover {
    text-decoration: underline;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 20px 20px;
    background-color: var(--link-bg-color);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
}

.service-card__number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
}

.service-card__icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.15rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.45;
}

/* Responsive adjust for services */
@media (max-width: 900px) {
    .services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* Inquiry Section Styling */
.inquiry-card {
    padding: 32px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.9;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    background-color: var(--link-bg-color);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.15);
}

/* Custom Select Styling */
.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Budget Chips */
.budget-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.budget-chip {
    flex: 1 1 auto;
    background-color: var(--link-bg-color);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.budget-chip:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.budget-chip.active {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    box-shadow: var(--shadow-soft);
}

/* Submit Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    background-color: var(--text-color);
    color: var(--bg-color);
}

.submit-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.1);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success State Screen */
.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    animation: zoomIn 0.4s ease;
}

.success-icon-wrapper {
    margin-bottom: 24px;
}

.checkmark {
    width: 72px;
    height: 72px;
    border-radius: var(--border-radius);
    display: block;
    stroke-width: 2.5;
    stroke: #10b981;
    /* emerald success green */
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #10b981;
    animation: fillAnimate .4s ease-in-out .4s forwards, scaleAnimate .3s ease-in-out .9s cubic-bezier(0.4, 0, 0.2, 1.5) forwards;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2.5;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: strokeAnimate 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #10b981;
    animation: strokeAnimate 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeAnimate {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scaleAnimate {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fillAnimate {
    100% {
        box-shadow: inset 0px 0px 0px 36px rgba(16, 185, 129, 0.05);
    }
}

.success-state h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.success-state p {
    font-size: 1.05rem;
    opacity: 0.8;
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.success-home-btn {
    margin-top: 10px;
}

/* Service Card Pricing Badge */
.service-card__price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background-color: var(--bg-color);
    border: 1px solid var(--card-border);
    padding: 3px 8px;
    border-radius: var(--border-radius);
    width: fit-content;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
    display: inline-block;
}

/* Work Process Timeline Styling */
.services-process__timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    background-color: var(--link-bg-color);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-step:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.process-step__badge {
    width: 28px;
    height: 28px;
    border-radius: var(--border-radius);
    background-color: var(--text-color);
    color: var(--bg-color);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
}

.process-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.process-step p {
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.8;
}

/* Services Guarantees Grid Styling */
.guarantees__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.guarantee-item {
    display: flex;
    gap: 16px;
    padding: 22px 20px;
    background-color: var(--link-bg-color);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    align-items: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.guarantee-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.guarantee-item i {
    color: #10b981;
    /* Success Green */
    font-size: 1.25rem;
    margin-top: 2px;
}

.guarantee-item__content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
}

.guarantee-item__content p {
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.8;
}

/* Responsive adjustments for process and guarantees */
@media (max-width: 900px) {
    .services-process__timeline {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .guarantees__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- Inquiry Stepper Wizard Styling --- */
.inquiry-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 36px auto;
    max-width: 500px;
    position: relative;
    padding: 0 10px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    border: 2px solid var(--card-border);
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

/* Active Step State */
.step-indicator.active .step-num {
    background-color: var(--text-color);
    border-color: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 0 4px rgba(161, 161, 170, 0.15);
    transform: scale(1.05);
}

.step-indicator.active .step-label {
    opacity: 1;
    font-weight: 700;
}

/* Completed Step State */
.step-indicator.completed .step-num {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.step-indicator.completed .step-label {
    opacity: 0.9;
    color: #10b981;
}

/* Step Connector Line */
.step-line {
    flex: 1;
    height: 2px;
    background-color: var(--card-border);
    margin: 0 16px;
    margin-bottom: 24px;
    /* Align horizontally with the step circles */
    position: relative;
    z-index: 1;
    transition: background-color 0.4s ease;
}

.step-line.active {
    background-color: #10b981;
}

/* Wizard Button Actions */
.step-actions,
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
    width: 100%;
}

.step-actions .step-btn,
.form-actions .step-btn,
.form-actions .submit-btn {
    flex: 1;
}

/* Common Step Buttons */
.step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
}

.step-btn.btn-next {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.step-btn.btn-next:hover {
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.1);
}

.step-btn.btn-prev {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text-color);
}

.step-btn.btn-prev:hover {
    background-color: var(--link-bg-color);
    border-color: var(--accent);
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 480px) {

    .step-actions,
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .step-actions .step-btn,
    .form-actions .step-btn,
    .form-actions .submit-btn {
        width: 100%;
    }
}

/* Animations for step transition */
.step-content {
    display: none;
    opacity: 0;
}

.step-content.active {
    display: block;
    animation: slideFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.995);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustment for stepper text */
@media (max-width: 600px) {
    .inquiry-stepper {
        margin-bottom: 24px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-line {
        margin-bottom: 20px;
    }
}

/* Project Cards Multi-Action Layout */
.project-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

.project-details-btn,
.project-card__actions .project__link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    background-color: var(--link-bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin: 0 !important;
}

.project-details-btn:hover,
.project-card__actions .project__link:hover {
    background-color: var(--accent);
    color: var(--card-bg);
    border-color: var(--accent);
}

/* Project Details Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.show {
    display: flex;
    opacity: 1;
}

.project-modal__content {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.project-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.project-modal__close:hover {
    background: var(--link-bg-color);
    border-color: var(--accent);
    transform: scale(1.05);
}

.project-modal__body {
    padding: 32px;
}

.project-modal__image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    margin-bottom: 24px;
}

.project-modal__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.project-modal__subtitle {
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 24px;
    line-height: 1.5;
}

.project-modal__section {
    margin-bottom: 24px;
}

.project-modal__section h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 6px;
    color: var(--text-color);
}

.project-modal__features {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.project-modal__features li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.project-modal__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.project-modal__tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-modal__tech-grid span {
    background-color: var(--link-bg-color);
    border: 1px solid var(--card-border);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.25s ease;
}

.project-modal__tech-grid span:hover {
    background-color: var(--accent);
    color: var(--card-bg);
    border-color: var(--accent);
}

.project-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
    padding-bottom: 8px;
    /* Fixes Webkit scroll container bottom padding cutoff */
}

.project-modal__footer .project__link,
.project-modal__footer .close-btn {
    flex: 1;
    max-width: 180px;
    height: 42px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1;
    margin: 0;
}

.project-modal__footer .project__link {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid transparent;
}

.project-modal__footer .project__link:hover {
    filter: brightness(1.1);
    transform: translateY(-1.5px);
}

.project-modal__footer .close-btn {
    background-color: var(--link-bg-color);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.project-modal__footer .close-btn:hover {
    filter: brightness(1.1);
    border-color: var(--accent);
    transform: translateY(-1.5px);
}

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

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

@media (max-width: 600px) {
    .project-modal {
        padding: 10px;
    }

    .project-modal__content {
        max-height: 95vh;
    }

    .project-modal__body {
        padding: 36px 16px 20px 16px;
    }

    .project-modal__close {
        top: 25px;
        right: 5px;
    }

    .project-modal__image {
        height: 180px;
        margin-bottom: 16px;
    }

    .project-modal__title {
        font-size: 1.5rem;
    }

    .project-modal__subtitle {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .project-modal__section {
        margin-bottom: 20px;
    }

    .project-modal__footer {
        display: flex;
        flex-direction: row;
        gap: 12px;
        margin-top: 24px;
        padding-top: 16px;
        padding-bottom: 20px;
        /* Breathe room at the bottom of mobile scroll view */
    }

    .project-modal__footer .project__link,
    .project-modal__footer .close-btn {
        flex: 1;
        width: auto;
        max-width: none;
        justify-content: center;
        height: 44px;
    }
}

/* Accessibility Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: scroll !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }

    #constellationCanvas {
        display: none !important;
    }
}