@font-face {
    font-family: Montserrat;
    src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --background: #101010;
    --secondary: #a476ff;
    --white: #dfdfdf;
    --muted: #f3f3f398;
    --border: #f3f3f310;
}

/* =========================
   Reset
   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--white);
    font-family:
        Montserrat,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    padding: 0 5rem;
}

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

/* =========================
   Layout
   ========================= */

main,
footer {
    margin: auto;
    max-width: 64rem;
}

/* =========================
   Hero
   ========================= */

.hero {
    padding: 4rem 0;
}

.eyebrow {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.hero > .eyebrow {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.hero-heading {
    align-items: center;
    display: flex;
    gap: 4rem;
}

h1 {
    font-size: clamp(3.2rem, 8vw, 5rem);
    font-weight: 500;
    line-height: 0.98;
}

.hero-heading p {
    color: var(--muted);
    font-size: 1.5rem;
}

.hero-heading strong {
    color: var(--secondary);
}

.hero-lead {
    color: var(--muted);
    font-size: 1.5rem;
    margin-top: 1rem;
}

.hero-business-note {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

.hero-business-note a {
    color: var(--secondary);
}

.hero-business-note a:hover {
    color: var(--white);
}

/* =========================
   Social Links
   ========================= */

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--muted);
    transition:
        color 0.2s,
        background 0.2s;
}

.social-links a,
.like-button,
.more-projects,
.project-details > a {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
}

.social-links a {
    --border-angle: 0deg;

    background:
        linear-gradient(
            var(--background),
            var(--background)
        ) padding-box,
        conic-gradient(
            from var(--border-angle),
            rgba(164, 118, 255, 0.35) 0%,
            rgba(164, 118, 255, 0.35) 70%,
            #a476ff 85%,
            rgba(164, 118, 255, 0.35) 100%
        ) border-box;

    border: 1px solid transparent;
    animation: rotate-border 3s linear infinite;
}

.social-links a:hover {
    color: #fff;
}

@property --border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes rotate-border {
    to {
        --border-angle: 360deg;
    }
}

/* =========================
   Technology Wall
   ========================= */

.technology-wall {
    margin: 4rem 0;
    overflow: hidden;
}

.technology-list {
    animation: scroll 60s linear infinite;
    display: flex;
    width: max-content;
}

.technology-group {
    display: flex;
    gap: 3rem;
    padding-right: 3rem;
}

.technology-list span {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 1.1rem;
    gap: 0.5rem;
    white-space: nowrap;
}

.technology-list img {
    height: 1.8rem;
    width: 1.8rem;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* =========================
   Skills
   ========================= */

.skills-section {
    width: 100%;
}

.skills-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: none;
    width: 100%;
}

.skills-list details {
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 1rem;
    color: var(--muted);
    overflow: hidden;
}

.skills-list summary {
    align-items: center;
    color: var(--white);
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    list-style: none;
    padding: 1rem;
}

.skills-list summary::-webkit-details-marker {
    display: none;
}

.skill-icon {
    align-items: center;
    color: var(--secondary);
    display: flex;
    justify-content: center;
    transition: transform 0.2s;
}

.skill-icon svg {
    display: block;
    height: 1.5rem;
    width: 1.5rem;
}

details[open] .skill-icon {
    transform: rotate(90deg);
}

.skills-list ul {
    border-top: 1px solid var(--border);
    list-style: none;
    padding: 0.25rem 1rem 1rem 3.2rem;
}

.skills-list li {
    padding-top: 0.6rem;
}

.skills-list li::before {
    content: "•";
    margin-left: -1rem;
    margin-right: 0.6rem;
}

/* =========================
   Sections
   ========================= */

.section {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
}

.section h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    margin-bottom: 2rem;
}

/* =========================
   Services / Pricing
   ========================= */

.services-intro {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 40rem;
}

.pricing-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
}

@media (min-width: 1025px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-card li::before {
        height: 0.6rem;
        width: 0.6rem;
    }
}

.pricing-card {
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
}

.pricing-card.featured {
    border-color: var(--secondary);
    position: relative;
}

.pricing-card-tag {
    background: var(--secondary);
    border-radius: 999px;
    color: var(--background);
    font-size: 0.75rem;
    font-weight: 600;
    left: 2rem;
    padding: 0.25rem 0.75rem;
    position: absolute;
    top: -0.75rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
}

.pricing-card .price {
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 600;
}

.pricing-card .delivery {
    color: var(--muted);
    font-size: 0.9rem;
}

.pricing-card ul {
    color: var(--muted);
    flex: 1;
    font-size: 0.95rem;
    list-style: none;
}

.pricing-card li {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    line-height: 1.5;
    padding-top: 0.6rem;
}

.pricing-card li::before {
    background: var(--secondary);
    border-radius: 50%;
    content: "";
    flex-shrink: 0;
    height: 0.5rem;
    width: 0.5rem;
}

.pricing-card > a {
    border: 1px solid var(--secondary);
    border-radius: 0.75rem;
    color: var(--secondary);
    padding: 0.8rem 1rem;
    text-align: center;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.pricing-card > a:hover {
    background: var(--secondary);
    color: var(--background);
}

/* =========================
   Projects
   ========================= */

.project-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

.project-image {
    background: #1a1a1a;
    border-radius: 1rem;
    display: block;
    height: 18rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-image:hover {
    transform: scale(1.02);
}

.project-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.project-details {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    padding: 0 0.75rem;
}

.project-details div {
    flex: 1;
}

.project-details h3 {
    font-size: 1.4rem;
}

.project-details p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.35rem;
}

.project-details span {
    color: var(--muted);
    font-size: 0.85rem;
}

.project-details > a {
    font-size: 0.8rem;
}

/* =========================
   Footer
   ========================= */

.footer-connect {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    text-align: center;
}

.footer-connect h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
}

.footer-connect-subtext {
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 0.75rem;
}

.footer-connect .social-links {
    justify-content: center;
    margin-top: 1.5rem;
}

/* =========================
   Contact Form
   ========================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
    width: 100%;
}

.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

.contact-form-message {
    min-height: 10rem;
    resize: none;
}

.contact-form-submit {
    background: var(--secondary);
    border: none;
    border-radius: 0.75rem;
    color: var(--background);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 1rem;
    transition: opacity 0.2s;
}

.contact-form-submit:hover {
    opacity: 0.85;
}

.hp-field {
    left: -9999px;
    position: absolute;
}

@media (min-width: 1025px) {
    .contact-form input,
    .contact-form textarea {
        font-size: 1.05rem;
        padding: 1.1rem 1.25rem;
    }

    .contact-form-submit {
        font-size: 1.05rem;
        padding: 1.1rem 1.25rem;
    }

    .contact-form-message {
        min-height: 12rem;
    }
}

.form-messages {
    margin: 1.5rem auto 0;
    max-width: 100%;
}

.form-message {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.form-message-success {
    background: rgba(164, 118, 255, 0.15);
    color: var(--white);
}

.form-message-error {
    background: rgba(255, 90, 90, 0.15);
    color: #ffb3b3;
}

/* =========================
   Accessibility
   ========================= */

@media (prefers-reduced-motion: reduce) {
    .social-links a {
        animation: none;
        border-color: #a476ff;
    }
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 767px) {
    body {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-heading,
    .contact-grid {
        display: block;
    }

    .hero-heading p {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .project-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }
}