/*==================================================*
* HOME PAGE - FEATURED PORTFOLIO
*==================================================*/

.portfolio {
    position: relative;

    padding: 50px 0;

    background: #0D0D0D;

    overflow: hidden;
}


/*==================================================*
* SECTION HEADING
*==================================================*/

.portfolio .section-heading {
    max-width: 800px;

    margin: 0 auto 55px;

    text-align: center;
}


/*==================================================*
* SUBTITLE
*==================================================*/

.portfolio .section-subtitle {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    margin-bottom: 20px;

    color: #C79A79;

    font-family: 'Poppins', sans-serif;

    font-size: .8rem;

    font-weight: 600;

    letter-spacing: 5px;

    text-transform: uppercase;
}


/*==================================================*
* SUBTITLE LINES
*==================================================*/

.portfolio .section-subtitle::before,
.portfolio .section-subtitle::after {
    content: "";

    width: 50px;

    height: 1px;

    background: rgba(199,154,121,.55);
}


/*==================================================*
* HEADING
*==================================================*/

.portfolio .section-heading h2 {
    margin: 0 0 18px;

    color: #FFFFFF;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(3rem, 5vw, 4.5rem);

    font-weight: 500;

    line-height: 1;
}


/*==================================================*
* DESCRIPTION
*==================================================*/

.portfolio .section-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: rgba(255,255,255,.68);

    font-family: 'Poppins', sans-serif;

    font-size: .95rem;

    line-height: 1.8;
}


/*==================================================*
* PORTFOLIO GRID
*==================================================*/

.portfolio-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

    width: 100%;
}


/*==================================================*
* PORTFOLIO CARD
*==================================================*/

.portfolio-card {
    position: relative;

    height: 430px;

    overflow: hidden;

    background: #151515;

    border: 1px solid rgba(199,154,121,.12);

    border-radius: 24px;

    cursor: pointer;

    box-shadow: 0 20px 50px rgba(0,0,0,.25);

    transition:
        transform .45s ease,
        box-shadow .45s ease,
        border-color .45s ease;
}


/*==================================================*
* CARD HOVER
*==================================================*/

.portfolio-card:hover {
    transform: translateY(-8px);

    border-color: rgba(199,154,121,.45);

    box-shadow: 0 30px 70px rgba(0,0,0,.45);
}


/*==================================================*
* CARD IMAGE
*==================================================*/

.portfolio-card img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .7s ease;
}


.portfolio-card:hover img {
    transform: scale(1.06);
}


/*==================================================*
* CARD OVERLAY
*==================================================*/

.portfolio-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.95) 0%,
            rgba(0,0,0,.55) 38%,
            rgba(0,0,0,.05) 75%,
            transparent 100%
        );

    pointer-events: none;
}


/*==================================================*
* PORTFOLIO CONTENT
*==================================================*/

.portfolio-content {
    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 3;

    padding: 32px;

    text-align: left;

    transform: translateY(8px);

    transition: transform .45s ease;
}


.portfolio-card:hover .portfolio-content {
    transform: translateY(0);
}


/*==================================================*
* CATEGORY
*==================================================*/

.portfolio-content span {
    display: block;

    margin-bottom: 10px;

    color: #C79A79;

    font-family: 'Poppins', sans-serif;

    font-size: .72rem;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/*==================================================*
* PROJECT TITLE
*==================================================*/

.portfolio-content h3 {
    margin: 0 0 18px;

    color: #FFFFFF;

    font-family: 'Cormorant Garamond', serif;

    font-size: 2rem;

    font-weight: 500;

    line-height: 1.1;
}


/*==================================================*
* VIEW PROJECT
*==================================================*/

.portfolio-content a {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 9px 19px;

    border: 1px solid rgba(199,154,121,.75);

    border-radius: 50px;

    background: rgba(199,154,121,.12);

    color: #D8B093;

    font-family: 'Poppins', sans-serif;

    font-size: .75rem;

    font-weight: 600;

    text-decoration: none;

    transition: .35s ease;
}


.portfolio-content a:hover {
    background: #C79A79;

    border-color: #C79A79;

    color: #FFFFFF;

    transform: translateY(-2px);
}


/*==================================================*
* VIEW ALL PROJECTS
*==================================================*/

.portfolio .section-button {
    margin-top: 50px;

    text-align: center;
}


.portfolio .section-button .btn-primary {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 30px;

    min-width: 190px;

    border: 1px solid #C79A79;

    border-radius: 50px;

    background: rgba(199,154,121,.12);

    color: #D8B093;

    font-family: 'Poppins', sans-serif;

    font-size: .85rem;

    font-weight: 600;

    text-decoration: none;

    transition: .35s ease;
}


.portfolio .section-button .btn-primary:hover {
    background: #C79A79;

    border-color: #C79A79;

    color: #FFFFFF;

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(199,154,121,.18);
}


/*==================================================*
* TABLET
*==================================================*/

@media (max-width: 992px) {

    .portfolio {
        padding: 85px 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-card {
        height: 400px;
    }

}


/*==================================================*
* MOBILE
*==================================================*/

@media (max-width: 768px) {

    .portfolio {
        padding: 75px 0;
    }

    .portfolio .section-heading {
        margin-bottom: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .portfolio-card {
        height: 390px;
    }

    .portfolio-content {
        padding: 25px;
    }

}


/*==================================================*
* SMALL MOBILE
*==================================================*/

@media (max-width: 576px) {

    .portfolio .section-subtitle {
        gap: 10px;

        font-size: .68rem;

        letter-spacing: 4px;
    }

    .portfolio .section-subtitle::before,
    .portfolio .section-subtitle::after {
        width: 30px;
    }

    .portfolio .section-heading h2 {
        font-size: 3rem;
    }

    .portfolio .section-heading p {
        font-size: .88rem;
    }

    .portfolio-card {
        height: 360px;

        border-radius: 20px;
    }

    .portfolio-content h3 {
        font-size: 1.7rem;
    }

}


/*==================================================*
* PORTFOLIO HERO
*==================================================*/

.portfolio-hero {
    position: relative;

    min-height: 90vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(0,0,0,.70),
            rgba(0,0,0,.70)
        ),
        url("../images/portfolio/portfolio-hero.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/*==================================================*
* HERO CONTENT
*==================================================*/

.portfolio-hero .container {
    position: relative;
    z-index: 5;

    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;
}

.portfolio-hero-content {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 1050px;

    margin: 0 auto;

    padding: 120px 0 90px;

    text-align: center;
}


/*==================================================*
* HERO SUBTITLE
*==================================================*/

.portfolio-hero .section-subtitle {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 16px;

    color: #C79A79;

    font-family: 'Poppins', sans-serif;

    font-size: .85rem;

    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;

    margin-bottom: 25px;
}


/*==================================================*
* HERO HEADING
*==================================================*/

.portfolio-hero h1 {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto 30px;

    color: #FFFFFF;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(3.2rem, 6vw, 5.5rem);

    font-weight: 500;

    line-height: 1.02;

    letter-spacing: -.5px;
}

.portfolio-hero h1 br {
    display: none;
}


/*==================================================*
* HERO TEXT
*==================================================*/

.portfolio-hero p {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    color: rgba(255,255,255,.82);

    font-family: 'Poppins', sans-serif;

    font-size: 1.05rem;

    line-height: 1.8;
}


/*==================================================*
* HERO BUTTONS
*==================================================*/

.portfolio-hero .hero-buttons {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 20px;

    margin-top: 35px;

    flex-wrap: wrap;
}

.portfolio-hero .btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 14px 32px;

    border-radius: 50px;

    background: rgba(199,154,121,.16);

    border: 1px solid rgba(199,154,121,.75);

    color: #D8B093;

    font-family: 'Poppins', sans-serif;

    font-weight: 600;

    text-decoration: none;

    transition: .35s ease;
}

.portfolio-hero .btn:hover {
    background: #C79A79;

    border-color: #C79A79;

    color: #FFFFFF;

    transform: translateY(-3px);
}


/*==================================================*
* FEATURED PROJECT
*==================================================*/

.featured-project {
    padding: 50px 0;

    background: #0D0D0D;
}

.featured-grid {
    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 80px;

    align-items: center;
}


/*==================================================*
* FEATURED IMAGE
*==================================================*/

.featured-image {
    position: relative;

    overflow: hidden;

    border-radius: 28px;

    border: 1px solid rgba(199,154,121,.15);

    box-shadow: 0 25px 60px rgba(0,0,0,.30);
}

.featured-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(199,154,121,.08),
        transparent 55%
    );

    pointer-events: none;
}

.featured-image img {
    width: 100%;

    height: 560px;

    object-fit: cover;

    display: block;

    transition: .6s ease;
}

.featured-image:hover img {
    transform: scale(1.03);
}


/*==================================================*
* FEATURED CONTENT
*==================================================*/

.featured-content {
    max-width: 560px;
}

.featured-content .section-subtitle {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    color: #C79A79;

    font-family: 'Poppins', sans-serif;

    font-size: .85rem;

    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;

    margin-bottom: 20px;
}

.featured-content h2 {
    color: #FFFFFF;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(3rem, 5vw, 4.5rem);

    font-weight: 500;

    line-height: 1.05;

    margin: 0 0 25px;
}

.featured-content p {
    color: rgba(255,255,255,.70);

    font-family: 'Poppins', sans-serif;

    font-size: 1rem;

    line-height: 1.85;

    margin-bottom: 30px;
}


/*==================================================*
* FEATURED FEATURES
*==================================================*/

.featured-features {
    display: grid;

    grid-template-columns: 1fr;

    gap: 14px;

    margin-bottom: 35px;
}

.featured-features .feature {
    display: flex;

    align-items: center;

    gap: 12px;

    color: #FFFFFF;

    font-family: 'Poppins', sans-serif;

    font-size: .9rem;
}

.featured-features .feature i {
    color: #C79A79;
}


/*==================================================*
* FEATURED BUTTON
*==================================================*/

.featured-content .btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 14px 32px;

    border-radius: 50px;

    background: rgba(199,154,121,.14);

    border: 1px solid #C79A79;

    color: #D8B093;

    font-family: 'Poppins', sans-serif;

    font-weight: 600;

    text-decoration: none;

    transition: .35s ease;
}

.featured-content .btn:hover {
    background: #C79A79;

    color: #FFFFFF;

    transform: translateY(-3px);

    box-shadow: 0 15px 35px rgba(199,154,121,.15);
}


/*==================================================*
* PORTFOLIO GALLERY
*==================================================*/

.portfolio-gallery {
    padding: 50px 0;

    background: #111111;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    grid-auto-rows: 320px;

    gap: 25px;
}


/*==================================================*
* GALLERY ITEM
*==================================================*/

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: 25px;

    background: #151515;

    border: 1px solid rgba(199,154,121,.12);

    cursor: pointer;

    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 1;
}


/*==================================================*
* GALLERY IMAGE
*==================================================*/

.gallery-item img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: .65s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}


/*==================================================*
* GALLERY OVERLAY
*==================================================*/

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: flex-end;

    text-align: left;

    padding: 32px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.88),
            rgba(0,0,0,.35) 45%,
            rgba(0,0,0,.05) 75%,
            transparent 100%
        );

    opacity: 1;

    transition: .45s ease;
}


/*==================================================*
* HOVER
*==================================================*/

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


/*==================================================*
* GALLERY CATEGORY
*==================================================*/

.gallery-overlay span {
    color: #C79A79;

    font-family: 'Poppins', sans-serif;

    font-size: .75rem;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 10px;
}


/*==================================================*
* GALLERY TITLE
*==================================================*/

.gallery-overlay h3 {
    color: #FFFFFF;

    font-family: 'Cormorant Garamond', serif;

    font-size: 2rem;

    font-weight: 500;

    line-height: 1.1;

    margin: 0 0 18px;
}


/*==================================================*
* GALLERY LINK
*==================================================*/

.gallery-overlay a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 19px;

    border-radius: 50px;

    background: rgba(199,154,121,.15);

    border: 1px solid rgba(199,154,121,.75);

    color: #D8B093;

    font-family: 'Poppins', sans-serif;

    font-size: .8rem;

    font-weight: 600;

    text-decoration: none;

    transition: .35s ease;
}


.gallery-overlay a:hover {
    background: #C79A79;

    border-color: #C79A79;

    color: #FFFFFF;

    transform: translateY(-3px);
}


/*==================================================*
* GALLERY CATEGORY
*==================================================*/

.gallery-overlay span {
    color: #C79A79;

    font-family: 'Poppins', sans-serif;

    font-size: .75rem;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 10px;
}


/*==================================================*
* GALLERY TITLE
*==================================================*/

.gallery-overlay h3 {
    color: #FFFFFF;

    font-family: 'Cormorant Garamond', serif;

    font-size: 2rem;

    font-weight: 500;

    line-height: 1.1;

    margin: 0 0 18px;
}


/*==================================================*
* GALLERY LINK
*==================================================*/

.gallery-overlay a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 9px 19px;

    border-radius: 50px;

    background: rgba(199,154,121,.15);

    border: 1px solid rgba(199,154,121,.75);

    color: #D8B093;

    font-family: 'Poppins', sans-serif;

    font-size: .8rem;

    font-weight: 600;

    text-decoration: none;

    transition: .35s ease;
}

.gallery-overlay a:hover {
    background: #C79A79;

    border-color: #C79A79;

    color: #FFFFFF;

    transform: translateY(-3px);
}


/*==================================================*
* CLIENT SUCCESS
*==================================================*/

.client-success {
    padding: 40px 0;

    background: #0D0D0D;
}

.client-success .section-heading {
    max-width: 850px;

    margin: 0 auto 65px;

    text-align: center;
}

.client-success .section-subtitle {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    color: #C79A79;

    font-family: 'Poppins', sans-serif;

    font-size: .85rem;

    font-weight: 600;

    letter-spacing: 4px;

    text-transform: uppercase;

    margin-bottom: 20px;
}

.client-success .section-subtitle::before,
.client-success .section-subtitle::after {
    content: "";

    width: 45px;

    height: 1px;

    background: rgba(199,154,121,.5);
}

.client-success .section-heading h2 {
    color: #FFFFFF;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(2.8rem, 5vw, 4.2rem);

    font-weight: 500;

    line-height: 1.05;

    margin: 0 0 18px;
}

.client-success .section-heading p {
    max-width: 700px;

    margin: 0 auto;

    color: rgba(255,255,255,.70);

    line-height: 1.8;
}


/*==================================================*
* SUCCESS GRID
*==================================================*/

.success-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/*==================================================*
* SUCCESS CARD
*==================================================*/

.success-card {
    position: relative;

    padding: 40px 32px;

    min-height: 300px;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    background:
        linear-gradient(
            145deg,
            rgba(30,30,30,.98),
            rgba(18,18,18,.98)
        );

    border: 1px solid rgba(199,154,121,.14);

    border-radius: 25px;

    transition: .4s ease;
}

.success-card:hover {
    transform: translateY(-7px);

    border-color: rgba(199,154,121,.45);

    box-shadow: 0 25px 55px rgba(0,0,0,.30);
}


/*==================================================*
* STARS
*==================================================*/

.stars {
    color: #C79A79;

    font-size: .9rem;

    letter-spacing: 4px;

    margin-bottom: 25px;
}


/*==================================================*
* SUCCESS TEXT
*==================================================*/

.success-card p {
    color: rgba(255,255,255,.72);

    font-family: 'Poppins', sans-serif;

    font-size: .9rem;

    line-height: 1.8;

    margin: 0 0 25px;
}

.success-card h3 {
    color: #FFFFFF;

    font-family: 'Cormorant Garamond', serif;

    font-size: 1.7rem;

    font-weight: 500;

    margin: auto 0 5px;
}

.success-card > span {
    color: #C79A79;

    font-family: 'Poppins', sans-serif;

    font-size: .75rem;

    letter-spacing: 1px;
}


/*==================================================*
* PORTFOLIO CTA
*==================================================*/

.portfolio-cta {
    padding: 55px 0 80px;

    background: #0D0D0D;

    text-align: center;
}


/*==================================================*
* CTA CONTENT
*==================================================*/

.portfolio-cta-content {
    max-width: 800px;

    margin: 0 auto;
}


/*==================================================*
* CTA HEADING
*==================================================*/

.portfolio-cta h2 {
    color: #FFFFFF;

    font-family: 'Cormorant Garamond', serif;

    font-size: clamp(3rem, 5vw, 4.5rem);

    font-weight: 500;

    line-height: 1.05;

    margin: 15px 0 20px;
}


/*==================================================*
* CTA TEXT
*==================================================*/

.portfolio-cta p {
    max-width: 650px;

    margin: 0 auto;

    color: rgba(255,255,255,.72);

    font-family: 'Poppins', sans-serif;

    font-size: 1rem;

    line-height: 1.8;
}


/*==================================================*
* CTA BUTTONS
*==================================================*/

.portfolio-cta .cta-buttons {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

    margin-top: 35px;

    flex-wrap: wrap;
}


/*==================================================*
* PRIMARY BUTTON
*==================================================*/

.portfolio-cta .primary-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 190px;

    padding: 14px 30px;

    border-radius: 50px;

    background: #C79A79;

    border: 1px solid #C79A79;

    color: #FFFFFF;

    font-family: 'Poppins', sans-serif;

    font-size: .9rem;

    font-weight: 600;

    text-decoration: none;

    transition: .35s ease;
}


.portfolio-cta .primary-btn:hover {
    background: #D8B093;

    border-color: #D8B093;

    color: #FFFFFF;

    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(199,154,121,.20);
}


/*==================================================*
* SECONDARY BUTTON
*==================================================*/

.portfolio-cta .secondary-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 190px;

    padding: 14px 30px;

    border-radius: 50px;

    background: transparent;

    border: 1px solid rgba(199,154,121,.75);

    color: #D8B093;

    font-family: 'Poppins', sans-serif;

    font-size: .9rem;

    font-weight: 600;

    text-decoration: none;

    transition: .35s ease;
}


.portfolio-cta .secondary-btn:hover {
    background: rgba(199,154,121,.15);

    border-color: #C79A79;

    color: #FFFFFF;

    transform: translateY(-3px);
}


/*==================================================*
* MOBILE
*==================================================*/

@media (max-width: 576px) {

    .portfolio-cta .cta-buttons {
        flex-direction: column;

        gap: 14px;

        padding: 0 20px;
    }

    .portfolio-cta .primary-btn,
    .portfolio-cta .secondary-btn {
        width: 100%;

        max-width: 280px;
    }

}


/*==================================================*
* RESPONSIVE
*==================================================*/

@media (max-width: 991px) {

    .featured-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .featured-content {
        max-width: 750px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);

        grid-auto-rows: 280px;
    }

    .success-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/*==================================================*
* TABLET / MOBILE
*==================================================*/

@media (max-width: 768px) {

    .portfolio-hero {
        min-height: 75vh;
    }

    .portfolio-hero-content {
        padding: 100px 0 70px;
    }

    .portfolio-hero h1 {
        font-size: 3.2rem;
    }

    .featured-project,
    .portfolio-gallery,
    .client-success {
        padding: 80px 0;
    }

    .featured-image img {
        height: 420px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-auto-rows: 300px;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-row: span 1;

        grid-column: span 1;
    }

    .success-grid {
        grid-template-columns: 1fr;
    }

    .success-card {
        min-height: 280px;
    }

    /* Always show project info on touch devices */

    .gallery-overlay {
        opacity: 1;
    }
}


/*==================================================*
* SMALL MOBILE
*==================================================*/

@media (max-width: 576px) {

    .portfolio-hero h1 {
        font-size: 2.8rem;
    }

    .portfolio-hero p {
        font-size: .9rem;
    }

    .portfolio-hero .hero-buttons {
        flex-direction: column;

        align-items: stretch;

        padding: 0 20px;
    }

    .portfolio-hero .btn {
        width: 100%;
    }

    .featured-image img {
        height: 330px;
    }

    .featured-content h2 {
        font-size: 3rem;
    }

    .gallery-grid {
        gap: 18px;
    }

    .gallery-item {
        border-radius: 20px;
    }

    .gallery-overlay {
        padding: 25px;
    }

    .gallery-overlay h3 {
        font-size: 1.7rem;
    }

    .success-card {
        padding: 32px 25px;
    }
}