/* =========================
   RESET
========================= */

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

:root{

    --bg:#f4f5f7;
    --card:#ebebea;
    --text:#111;
    --muted:#777;

    --mono:'IBM Plex Mono', monospace;
    --sans:'DM Sans', sans-serif;

}

body{

    background:var(--bg);
    font-family:var(--sans);
    color:var(--text);
    line-height:1.6;

}

.container{

    max-width:1100px;
    margin:auto;
    padding:60px 40px;

}


/* =========================
   HERO
========================= */

.hero h1{

    font-family:var(--mono);
    font-size:48px;
    margin-bottom:16px;

}

.hero p{

    max-width:520px;
    color:var(--muted);
    margin-bottom:24px;

}

.hero-actions{

    display:flex;
    gap:12px;

}

.hero-actions a{

    font-family:var(--mono);
    font-size:13px;

    border:1px solid var(--text);
    padding:8px 18px;

    text-decoration:none;
    color:var(--text);

}

.hero-actions a:hover{

    background:var(--text);
    color:white;

}


/* =========================
   PROJECTS
========================= */

.projects{

    position:relative;
    margin-top:80px;

    display:flex;
    flex-direction:column;
    gap:28px;

}

.project-card{

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;

    background:var(--card);

    padding:60px;
    border-radius:18px;

    text-decoration:none;
    color:inherit;

    transition:
    transform .35s cubic-bezier(.2,.6,.2,1),
    box-shadow .35s ease;

}

.project-card.preview{

    pointer-events:none;
    cursor:default;

}

.project-card:not(.preview):hover{

    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.project-card:not(.preview):hover h2{

    transform:translateX(4px);

}

.project-card:not(.preview):hover .project-image{

    transform:translateY(-10px) scale(1.03);

}

.project-info h2{

    font-family:var(--mono);
    font-size:28px;
    margin-bottom:8px;

    transition:transform .3s ease;

}

.project-info p{

    color:var(--muted);
    font-size:14px;

}


/* =========================
   PROJECT IMAGE
========================= */

.mockup{

    position:relative;
    width:380px;
    height: 220px;

    display:flex;
    align-items: center;
    justify-content:flex-end;

    margin-left:40px;

}

.project-image{

    width:100%;
    height:100%;

    object-fit: contain;
    display:block;

    background:transparent;

    transition:
    transform .45s cubic-bezier(.2,.6,.2,1);

}


/* =========================
   GRADIENT MASK
========================= */

.projects::after{

    content:"";
    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:200px;

    background:linear-gradient(
        to bottom,
        rgba(245,245,243,0) 0%,
        rgba(245,245,243,1) 100%
    );

    pointer-events:none;

}

.projects.expanded::after{

    display:none;

}


/* =========================
   VIEW MORE
========================= */

.view-more {

    display: inline-block;

    font-family: var(--mono);
    font-size: 13px;

    border: 1px solid var(--text);

    padding: 8px 18px;

    color: var(--text);
    background: transparent;

    cursor: pointer;

    margin: 40px auto;

    transition: .25s;

}

.view-more:hover {

    background: var(--text);
    color: white;

}

.view-more-wrapper {
  
    text-align: center;

}

.preview{

    opacity:.35;
    filter:grayscale(40%);

}

.hidden-project{

    display:none;
    opacity:0;
    transform:translateY(30px);

}

.hidden-project.show{

    display:flex;
    animation:reveal .6s ease forwards;

}

@keyframes reveal{

    from{

        opacity:0;
        transform:translateY(30px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}


/* =========================
   FOOTER
========================= */

.footer{

    display:flex;
    justify-content:space-between;
    gap:40px;

    border-top:1px solid #ddd;

    padding:32px 0;
    margin-top:80px;

}

.footer-item{

    display:flex;
    align-items:center;
    gap:14px;

    cursor:pointer;

    transition:transform .2s ease;

}

.footer-item:hover{

    transform:translateY(-2px);

}

.footer-icon{

    width:49px;
    height:49px;

    display:flex;
    align-items:center;
    justify-content:center;

}

.footer-icon img{

    width:100%;
    height:100%;
    object-fit:contain;

}

.footer span{

    font-size:14px;

}

.footer p{

    font-size:18px;
    font-weight:500;

}


/* =========================
   ABOUT PAGE
========================= */

.about-header{

    margin-bottom:80px;

}

.about-header h1{

    font-family:var(--mono);
    font-size:36px;

}

.back-link{

    font-family:var(--mono);
    font-size:14px;

    text-decoration:none;
    color:var(--text);

    opacity:.7;

}

.back-link:hover{

    opacity:1;

}

.about-section{

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:80px;
    margin-bottom:120px;

}

.about-section.reverse{

    flex-direction:row-reverse;

}

.about-text{

    max-width:560px;

}

.about-text h2{

    font-family:var(--mono);
    font-size:24px;

    margin-bottom:16px;

}

.about-text p{

    color:var(--muted);
    font-size:14px;

    margin-bottom:16px;

}

.about-text p.italic{

    font-style:italic;

}

.about-text ul{

    margin-left:18px;
    color:var(--muted);
    font-size:14px;

}

.about-text li{

    margin-bottom:6px;

}

.about-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 100%;
    max-width: 520px;

    aspect-ratio: 21 / 21;
    overflow: hidden;

    /*border-radius: 12px;*/
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-header{

    margin-bottom: 40px;

}

.contact-header h1{

    font-family:var(--mono);
    font-size:36px;

}

.contact-section{

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:80px;
    margin-bottom:120px;

}

.contact-image img{

    width:420px;
    height:auto;

}


/* FORM */

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

.contact-form h2{

    font-family:var(--mono);
    font-size:24px;

}

.contact-description{

    color:var(--muted);
    font-size:14px;

    margin-bottom:30px;

}

/*.contact-form label{

    display:block;

    font-size:13px;
    color:var(--muted);

    margin-bottom:6px;
    margin-top:18px;

}*/

.contact-form input,
.contact-form textarea{

    width:100%;
    padding:12px 14px;
    border:1px solid #ddd;
    background:white;
    font-family:var(--sans);
    font-size:14px;
    outline:none;
    margin: 8px 0;

}

.contact-form textarea{

    height:160px;
    resize:none;

}

.contact-form input:focus,
.contact-form textarea:focus{

    border-color:var(--text);
    box-shadow:0 4px 14px rgba(0,0,0,.05);

}

.contact-form button{

    margin-top:22px;

    padding:10px 22px;

    border:1px solid var(--text);

    background:transparent;

    font-family:var(--mono);
    font-size:13px;

    cursor:pointer;

    transition:.25s;

}

.contact-form button:hover{

    background:var(--text);
    color:white;

}

.contact-intro {
    max-width: 100%;
    margin-bottom: 40px;
}

.contact-intro h2 {
    font-family: var(--mono);
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-intro p {
    font-size: 14px;
    color: var(--muted);
}

.contact-image {
    display: flex;
    justify-content: center;
}

.contact-image .image-wrapper {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 21 / 21;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================
   CONTACT CTA
========================= */

.contact-cta{

    margin-top:120px;
    margin-bottom:40px;

}

.contact-cta h2{

    font-family:var(--mono);
    font-size:24px;

}

.contact-cta h3{

    font-family:var(--mono);
    font-size:32px;
    font-weight:600;

}


/* =========================
   SCROLL REVEAL
========================= */

.reveal{

    opacity:0;
    transform:translateY(40px);

    transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.2,.6,.2,1);

}

.reveal.visible{

    opacity:1;
    transform:translateY(0);

}

.about-image.reveal{

    transition-delay:.1s;

}

.about-text.reveal{

    transition-delay:.25s;

}

.about-image img{

    transition:transform .5s ease;

}

.about-image:hover img{

    transform:scale(1.03);

}


/* =========================
   RESPONSIVE
========================= */

@media (max-width:768px){

.container{

    padding:40px;

}

.project-card{

    min-height: 260px;
    padding:32px 24px;
    flex-direction:column;
    align-items:flex-start;

}

.mockup{

    width:100%;
    margin-left:0;
    margin-top:20px;

}

.project-image{

    width:100%;

}

.project-info h2{

    font-size:24px;

}

.footer{

    flex-direction:column;
    gap:24px;

}

.footer span{

    font-size:12px;

}

.footer p{

    font-size:16px;

}

.about-section{

    flex-direction:column;
    gap:40px;

}

.about-section.reverse{

    flex-direction:column;

}

.about-image img{

    width:100%;

}

.contact-section{

    flex-direction:column;
    gap:40px;

}

.contact-image img{

    width:100%;

}

}

/* =========================
   CASE STUDY PAGE
========================= */

.case-wrapper {
    /*max-width: 860px;*/
    margin: auto;
    padding: 0 40px;
}

.case-meta {

    display: flex;
    justify-content: space-around;

    padding-top: 32px;
    border-top: 1px solid #ddd;

    margin-bottom: 40px;

}

.case-meta label {

    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);

}

.case-meta span {

    font-family: var(--mono);
    font-size: 13px;
    color: #4a73ff;

}

.case-hero-image {

    margin-top: 40px;
    border-radius: 16px;
    overflow: hidden;

    aspect-ratio: 16/9;

}

.case-hero-image img {

    width: 100%;
    height: 100%;
    object-fit: cover;

}

.case-section {
    padding-top: 0;
}

.case-full-image img {
    width: 100%;
    border-radius: 16px;
    display: block;
    margin: 40px 0;
}

.case-section h2 {

    font-family: var(--mono);
    font-size: 20px;
    margin-bottom: 16px;

}

.case-section p {

    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;

}

.case-image {

    margin-top: 40px;
    border-radius: 16px;
    overflow: hidden;

}

.case-image img {

    width: 100%;
    display: block;

}

.case-grid {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;

}

.case-grid img {

    width: 100%;
    height: 350px;
    border-radius: 16px;
    object-fit: cover;

}

.case-flex {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;

}

.case-flex .case-image{
    width: 100%;
  }

.case-flex .case-image img {

    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top;

}

.case-divider {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

.case-hero {
    margin-top: 40px;
    margin-bottom: 40px;
}

.case-tag {

    display: inline-block;

    font-family: var(--mono);
    font-size: 11px;

    border: 1px solid #ddd;
    border-radius: 20px;

    padding: 4px 12px;

    margin-bottom: 24px;

    color: var(--muted);

}

.case-title {

    font-family: var(--mono);
    font-size: 48px;
    line-height: 1.1;

    margin-bottom: 24px;

}

.case-description {

    font-size: 14px;
    color: var(--muted);

    margin-bottom: 40px;

}

.case-list {
    margin-top: 16px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.case-list li {
    margin-bottom: 8px;
}

/* responsive */

@media (max-width:768px) {

    .case-wrapper {
        padding: 0 24px;
    }

    .case-meta {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .case-title{
        font-size:36px;
    }
    .case-divider {
        margin: 56px 0;
    }

}