@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Trap';
    src: url('font/Trap-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Trap';
    src: url('font/Trap-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Trap';
    src: url('font/Trap-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Trap';
    src: url('font/Trap-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Trap';
    src: url('font/Trap-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Trap';
    src: url('font/Trap-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}
@font-face {
    font-family: 'Trap';
    src: url('font/Trap-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    background-color: #f1ede8;
}
h1 {
    font-family: 'Trap', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.05rem;
    color: #242429;
    margin: 0.4rem;
}

h2 {
    font-family: 'Trap', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.02rem;
    color: white;
    margin: 0.4rem;
}

h3 {
    font-family: 'Trap', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: 0;
    color: #5F8684;
    margin: 0.4rem;
}

h4 {
    font-family: 'Trap', sans-serif;
    font-weight: 500;
    font-size: 1.20rem;
    line-height: 1.35;
    letter-spacing: 0.02rem;
    color: #5F8684;
    margin: 0.4rem;
}

p {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
    color: #3F615F;
    margin: 0.4rem;
}
.hidden {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}
.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
header {
    background-color: #f1ede8;
    display: flex;
    position: fixed;
    top: 0%;
    z-index: 1;
    width: 100%;
}
.nav {
    display: flex;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: space-between;
    align-items: center;
}
.menu {
    display: flex;
    width: 33.33%;;
    justify-content: center;
}
.menu ul {
    display: flex;
    width: 100%;
    padding: 0;
}
li {
    list-style: none;
    margin-right: 1.5rem;
}
li a{
    text-decoration: none;
    list-style: none;
    color: #242429;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.25s ease;
}
.menu ul a:hover {
    color: #3F615F;
}
.menu ul a.active-link {
    color: #3F615F;
    text-decoration: underline;
}
#overlaymenu ul a.active-link {
    color: #5F8684;
}
.contact-button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 40%;
}
.contact-button a {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #242429;
    border-radius: 30px;
    color: #242429;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.contact-button a:hover {
    background-color: #242429;
    color: #f1ede8;
}
#logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0;
    color: #242429;
    z-index: 3;
}
#menu-button {
    position: relative;
    display: none;
    cursor: pointer;
    z-index: 3;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
}
#menu-button span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 2px;
    background-color: #242429;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
#menu-button span:nth-child(1) {
    margin-top: -5px;
}
#menu-button span:nth-child(2) {
    margin-top: 5px;
}
#menu-button.open span {
    background-color: #f1ede8;
}
#menu-button.open span:nth-child(1) {
    margin-top: 0;
    transform: translate(-50%, -50%) rotate(45deg);
}
#menu-button.open span:nth-child(2) {
    margin-top: 0;
    transform: translate(-50%, -50%) rotate(-45deg);
}
#overlaymenu {
    display: none;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 90px 20px 40px;
    background-color: #242429;
}
#overlaymenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#overlaymenu li {
    margin-right: 0;
    border-bottom: 1px solid rgba(241, 237, 232, 0.15);
}
#overlaymenu ul a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0;
    font-family: 'Trap', sans-serif;
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.03rem;
    color: #f1ede8;
    transition: color 0.25s ease;
}
#overlaymenu ul a:hover {
    color: #5F8684;
}
.overlay-link__num {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #5F8684;
}
.overlay-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(241, 237, 232, 0.15);
}
.overlay-footer p {
    margin: 0;
    color: #c5c6c1;
    font-size: 0.75rem;
    letter-spacing: 0.02rem;
}
@media (max-width: 1020px) {
    .menu {
      display: none;
    }
    .contact-button {
        display: none;
      }
    #menu-button {
        display: block;
    }

}





section{
    padding-left: 20px;
    padding-right: 20px;
    scroll-margin-top: 90px;
}
.intro-section {
    display: flex;
    align-items: flex-end;
    min-height: 75vh;
}
.intro-container {
    width: 100%;
}
.intro-title h1 {
    font-size: 72px;
    font-weight: 400;
    margin: 0;
}
.lines__line {
    width: 100%;
    background-color: #242429;
}
.text2 {
    display: flex;
    width: 33.33%;
    justify-content: space-between;
}
.line-text {
    display: flex;
    margin: 0;
    width: 100%;
    justify-content: space-between;
}
.line-text p{
    margin: 0;
    font-size: 12px;
}
.line-1 {
    height: 1px;
    margin-top: 0;
}
.line-2 {
    height: 2px;
}
.line-3 {
    height: 4px;
    margin-top: 16px;
}
.line-4 {
    height: 6px;
    margin-top: 14px;
}
.line-5 {
    height: 8px;
    margin-top: 12px;
}
.line-6 {
    height: 10px;
    margin-top: 10px;
}
.section-container {
    font-size: 20px;
    background-color: #242429;
    margin-top: 10px;
    padding: 13px 20px 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title {
    max-width: 700px;
}
.section-poster {
    position: relative;
    margin-top: 10px;
    padding: 20px;
    background-color: #c5c6c1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: min(100vh - 70px,750px);
}
.section-poster2 {
    position: relative;
    margin-top: 30px;
    padding: 20px;
    background-color: #c5c6c1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: min(100vh - 70px,750px);
}
.section-container2 {
    font-size: 20px;
    margin-top: 100px;
    padding: 15px 20px 30px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #242429;
}
.down-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #f1ede8;
    border-radius: 50%;
    color: #f1ede8;
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    text-decoration: none;
    transition: transform 0.3s ease-in-out, background-color 0.25s ease, color 0.25s ease;
}
.down-button a:hover {
    transform: rotate(90deg);
    background-color: #f1ede8;
    color: #242429;
}
.poster-footer {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    height: 20px;
    width: calc(100% - 40px);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #242429;
    border-bottom: 1px solid #242429;
}
.poster-footer p {
    margin: 0;
    font-size: 12px;
}
.section-number {
    max-width: 33.33%;
    min-width: 33.33%;
}
.text-section {
    display: flex;
    justify-content: flex-end;
}
.text-section2 {
    display: flex;
    justify-content: space-between;
}
img {
    max-width: 100%;
    height: auto;
}
.visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 66.66%;
}
.text-container {
    display: block;
    width: 33.33%;
    min-width: 33.33%;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.text-body {
    width: 50%;
}
.socialmedia {
    margin-top: 5rem;
}
.socialmedia-title {
    margin-bottom: 1.5rem;
}
.socialmedia-link a {
    text-decoration: none;
    transition: opacity 0.25s ease;
}
.socialmedia-link a:hover {
    opacity: 0.6;
    text-decoration: underline;
}
.container {
    position: relative;
    padding: 2em;
    text-align: center;
    height: 60vh;
}
button {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 35px;
    border: none;
    background-color: #354552;
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
}

button:hover {
    background-color: #0062CC;
    transition: all 0.5s ease-in-out;
}

button:active {
    background-color: #0062CC;
}

button:disabled {
    background-color: #B3B3B3;
    color: #FFFFFF;
    cursor: not-allowed;
}
.view-more {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #354552;
    text-decoration: none;
}
.view-more:hover {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #354552;
    text-decoration: underline;
}

/* Code window (showcase visual) */
.code-window {
    width: min(600px, 100%);
    background-color: #242429;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.code-window__bar {
    display: flex;
    gap: 6px;
    padding: 12px 14px;
    background-color: #1a1a1e;
}
.code-window__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4b4b52;
}
.code-window__body {
    padding: 24px 28px;
}
.code-window__body p {
    color: #f1ede8;
    margin: 0.3rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.code-window__body .tok-kw {
    color: #5F8684;
}
.code-window__body .tok-fn {
    color: #c5c6c1;
}

/* Commit log (process visual) */
.commit-log {
    width: 100%;
    max-width: 420px;
    padding: 40px 0;
    position: relative;
}
.commit-log__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 32px;
}
.commit-log__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    width: 1px;
    height: 100%;
    background-color: #242429;
}
.commit-log__dot {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #f1ede8;
    border: 2px solid #242429;
    margin-top: 4px;
}
.commit-log__dot--live {
    background-color: #5F8684;
}
.commit-log__msg {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    color: #242429;
}
.commit-log__meta {
    margin: 0.2rem 0 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #3F615F;
}

/* Work grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0 1rem;
}
.work-card {
    background-color: #c5c6c1;
    padding: 1.75rem;
}
.work-card h4 {
    margin: 0 0 0.6rem 0.4rem;
    color: #242429;
}
.work-card p {
    margin-left: 0.4rem;
}
.work-card__stack {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    margin-top: 1rem !important;
}
.work-note {
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 2.5rem;
}

/* Tech stack strip */
.tech-stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding-bottom: 2.5rem;
}
.tech-stack__label {
    margin: 0;
    font-size: 0.85rem;
}
.tech-stack__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tech-stack__list li {
    margin: 0;
    padding: 0.3rem 0.8rem;
    border: 1px solid #242429;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #242429;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: #242429;
    border: 1px solid #242429;
    margin-bottom: 40px;
}
.service-card {
    background-color: #f1ede8;
    padding: 2rem;
}
.service-card h4 {
    margin: 0 0 0.6rem 0.4rem;
    color: #242429;
}
.service-card p {
    margin-left: 0.4rem;
}

/* Process grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0 3rem;
}
.process-step__number {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: #3F615F;
    margin: 0 0 0.5rem 0.4rem;
}
.process-step h4 {
    margin-left: 0.4rem;
}
.process-step p {
    margin-left: 0.4rem;
}

/* Contact CTA */
.contact-section {
    background-color: #242429;
    margin-top: 10px;
    padding: 5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-section h2 {
    max-width: 700px;
}
.contact-section p {
    color: #c5c6c1;
    max-width: 500px;
}
.contact-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 28px;
    border-radius: 35px;
    background-color: #5F8684;
    color: #f1ede8;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}
.contact-cta:hover {
    background-color: #242429;
    border: 1px solid #5F8684;
}
.contact-form {
    width: 100%;
    max-width: 440px;
    margin-top: 2rem;
    text-align: left;
}
.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
}
.form-row label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #c5c6c1;
    margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    color: #f1ede8;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #4b4b52;
    padding: 0.5rem 0.1rem;
    resize: vertical;
    transition: border-color 0.25s ease;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #5F8684;
}
.contact-form button.contact-cta {
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.contact-alt {
    color: #c5c6c1;
    font-size: 0.85rem;
    margin-top: 1.5rem;
}
.contact-alt a {
    color: #f1ede8;
}

/* Footer */
footer {
    background-color: #242429;
    padding: 3rem 20px 1.5rem;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid #4b4b52;
}
#footer-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: #f1ede8;
    margin-bottom: 0.5rem;
}
.footer-brand p {
    color: #c5c6c1;
    margin: 0;
}
.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin: 0 0 0.6rem;
}
.footer-links a {
    font-family: 'Poppins', sans-serif;
    color: #f1ede8;
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: #5F8684;
}
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-social a {
    font-family: 'Poppins', sans-serif;
    color: #f1ede8;
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-social a:hover {
    color: #5F8684;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
}
.footer-bottom p {
    color: #c5c6c1;
    margin: 0;
    font-size: 0.85rem;
}

/* Custom cursor (fine pointer only) */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    .cursor-dot,
    .cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        border-radius: 50%;
        z-index: 9999;
        transform: translate(-50%, -50%);
        opacity: 1;
        transition: opacity 0.2s ease;
    }
    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #242429;
    }
    .cursor-outline {
        width: 36px;
        height: 36px;
        border: 1px solid #242429;
        transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    }
    .cursor-outline.cursor-hover {
        width: 56px;
        height: 56px;
        background-color: rgba(95, 134, 132, 0.15);
        border-color: #5F8684;
    }
    .cursor-dot.cursor-hidden,
    .cursor-outline.cursor-hidden {
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* Responsive content sections */
@media (max-width: 900px) {
    .intro-title h1 {
        font-size: 40px;
    }
    .text1 {
        display: none;
    }
    .text2 {
        width: 100%;
    }
    .section-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .section-title {
        max-width: 100%;
    }
    h2 {
        font-size: 1.6rem;
    }
    .poster-footer {
        height: auto;
    }
    .code-window__body {
        padding: 20px;
    }
    .code-window__body {
        padding: 20px;
    }
    .text-section2 {
        flex-direction: column;
    }
    .visual-container {
        width: 100%;
        margin-bottom: 2rem;
    }
    .text-container {
        width: 100%;
        min-width: 0;
        padding-right: 0;
    }
    .text-body {
        width: 100%;
    }
    .section-number {
        max-width: none;
        min-width: 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .work-grid {
        grid-template-columns: 1fr;
    }
    .service-card,
    .work-card {
        padding: 1.5rem;
    }
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-section {
        padding: 3rem 1.25rem;
    }
    .footer-top {
        flex-direction: column;
    }
}
@media (max-width: 520px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    #overlaymenu ul a {
        font-size: 1.8rem;
    }
}
