/* =========================================================
   DENNJEN TECH SOLUTIONS
   PORTFOLIO PAGE STYLES
   ---------------------------------------------------------


/* =========================================================
   1. PORTFOLIO PAGE VARIABLES
========================================================= */

:root {
    --portfolio-blue-dark: #06265f;
    --portfolio-blue: #0756a3;
    --portfolio-blue-light: #0874c9;
    --portfolio-cyan: #16b9d4;

    --portfolio-text: #172033;
    --portfolio-text-light: #64748b;
    --portfolio-heading: #10213f;

    --portfolio-white: #ffffff;
    --portfolio-light: #f7faff;
    --portfolio-light-blue: #eef6ff;
    --portfolio-border: #e3ebf5;

    --portfolio-shadow-sm:
        0 8px 25px rgba(15, 45, 85, 0.07);

    --portfolio-shadow:
        0 18px 45px rgba(15, 45, 85, 0.10);

    --portfolio-shadow-hover:
        0 25px 55px rgba(15, 45, 85, 0.15);

    --portfolio-radius: 18px;
    --portfolio-radius-small: 12px;

    --portfolio-container: 1180px;
}


/* =========================================================
   2. PAGE HEADER / HERO
========================================================= */

.page-header {
    position: relative;
    isolation: isolate;

    min-height: 440px;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding: 90px 24px 80px;

    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(22, 185, 212, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(8, 116, 201, 0.20),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #041d4a 0%,
            #06265f 48%,
            #0756a3 100%
        );

    color: var(--portfolio-white);
}


/* Decorative background circles */

.page-header::before,
.page-header::after {
    content: "";
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    z-index: -1;
}


.page-header::before {
    width: 430px;
    height: 430px;

    right: -180px;
    top: -210px;

    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        0 0 0 55px rgba(255, 255, 255, 0.025),
        0 0 0 110px rgba(255, 255, 255, 0.018);
}


.page-header::after {
    width: 250px;
    height: 250px;

    left: -120px;
    bottom: -150px;

    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* Hero content */

.page-header-content {
    width: min(100%, var(--portfolio-container));

    margin: 0 auto;

    position: relative;
    z-index: 2;
}


.page-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;

    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.20);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    backdrop-filter: blur(8px);
}


.page-header .section-badge i {
    font-size: 0.78rem;
}


.page-header h1 {
    max-width: 850px;

    margin: 0 0 20px;

    color: #ffffff;

    font-family: "Manrope", sans-serif;

    font-size: clamp(2.5rem, 5vw, 4.6rem);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.045em;
}


.page-header p {
    max-width: 700px;

    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-family: "DM Sans", sans-serif;

    font-size: 1.08rem;

    line-height: 1.8;
}


/* =========================================================
   3. PORTFOLIO CONTAINER
========================================================= */

.portfolio-container {
    width: min(
        calc(100% - 48px),
        var(--portfolio-container)
    );

    margin: 0 auto;
}


/* =========================================================
   4. PORTFOLIO INTRODUCTION
========================================================= */

.portfolio-intro {
    position: relative;

    padding: 105px 0 95px;

    background: #ffffff;

    overflow: hidden;
}


/* Very subtle background detail */

.portfolio-intro::after {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    right: -220px;
    top: 40px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(8, 116, 201, 0.055),
            transparent 70%
        );

    pointer-events: none;
}


.portfolio-intro-content {
    max-width: 820px;

    position: relative;
    z-index: 1;
}


.portfolio-eyebrow {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--portfolio-blue);

    font-size: 0.78rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.portfolio-intro h2 {
    max-width: 780px;

    margin: 0 0 22px;

    color: var(--portfolio-heading);

    font-family: "Manrope", sans-serif;

    font-size: clamp(2rem, 4vw, 3.3rem);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.035em;
}


.portfolio-intro h2 span {
    color: var(--portfolio-blue);
}


.portfolio-intro p {
    max-width: 760px;

    margin: 0 0 14px;

    color: var(--portfolio-text-light);

    font-family: "DM Sans", sans-serif;

    font-size: 1rem;

    line-height: 1.85;
}


.portfolio-intro p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   5. PORTFOLIO PROJECT SECTION
========================================================= */

.portfolio-section {
    position: relative;

    padding: 100px 0 110px;

    background:
        linear-gradient(
            180deg,
            #f7faff 0%,
            #ffffff 100%
        );
}


/* Section heading */

.portfolio-section-heading {
    max-width: 760px;

    margin: 0 auto 55px;

    text-align: center;
}


.portfolio-section-heading .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 15px;

    padding: 8px 14px;

    border: 1px solid #dce8f5;

    border-radius: 999px;

    background: #ffffff;

    color: var(--portfolio-blue);

    font-size: 0.76rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    box-shadow: 0 5px 18px rgba(15, 45, 85, 0.05);
}


.portfolio-section-heading h2 {
    margin: 0 0 17px;

    color: var(--portfolio-heading);

    font-family: "Manrope", sans-serif;

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.035em;
}


.portfolio-section-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: var(--portfolio-text-light);

    font-family: "DM Sans", sans-serif;

    font-size: 1rem;

    line-height: 1.75;
}


/* =========================================================
   6. PORTFOLIO GRID
========================================================= */

.portfolio-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;

    align-items: stretch;
}


/* =========================================================
   7. PORTFOLIO CARD
========================================================= */

.portfolio-item {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--portfolio-border);

    border-radius: var(--portfolio-radius);

    background: #ffffff;

    box-shadow: var(--portfolio-shadow-sm);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.portfolio-item:hover {
    transform: translateY(-7px);

    border-color: #d2e2f2;

    box-shadow: var(--portfolio-shadow-hover);
}


/* =========================================================
   8. PROJECT IMAGE
========================================================= */

.portfolio-image {
    position: relative;

    width: 100%;

    min-height: 235px;

    overflow: hidden;

    background-position: center;

    background-repeat: no-repeat;

    background-size: cover;
}


/* Image overlay */

.portfolio-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(4, 29, 74, 0.02) 0%,
            rgba(4, 29, 74, 0.08) 55%,
            rgba(4, 29, 74, 0.30) 100%
        );

    pointer-events: none;
}


/* Slight zoom on hover */

.portfolio-item:hover .portfolio-image {
    background-size: 104%;
    transition: background-size 0.5s ease;
}


/* =========================================================
   9. PROJECT CONTENT
========================================================= */

.portfolio-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 26px 26px 28px;
}


.portfolio-content h3 {
    margin: 12px 0 11px;

    color: var(--portfolio-heading);

    font-family: "Manrope", sans-serif;

    font-size: 1.25rem;

    font-weight: 750;

    line-height: 1.3;

    letter-spacing: -0.02em;
}


.portfolio-content p {
    margin: 0;

    color: var(--portfolio-text-light);

    font-family: "DM Sans", sans-serif;

    font-size: 0.94rem;

    line-height: 1.75;
}


/* =========================================================
   10. PROJECT TAG
========================================================= */

.portfolio-tag {
    display: inline-flex;
    align-items: center;

    align-self: flex-start;

    padding: 6px 11px;

    border-radius: 999px;

    background: #eef6ff;

    color: var(--portfolio-blue);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


/* =========================================================
   11. LIVE PROJECT INDICATOR
========================================================= */

.pulse-dotted {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    align-self: flex-start;

    padding: 6px 11px;

    border-radius: 999px;

    background: #f0fbf8;

    color: #15745b;

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}


.pulse-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #20a879;

    box-shadow:
        0 0 0 4px rgba(32, 168, 121, 0.12);

    animation: portfolioPulse 2s ease-in-out infinite;
}


@keyframes portfolioPulse {
    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 0 0 4px rgba(32, 168, 121, 0.12);
    }

    50% {
        transform: scale(1.08);

        box-shadow:
            0 0 0 7px rgba(32, 168, 121, 0.05);
    }
}


/* =========================================================
   12. PROJECT LINK
========================================================= */

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    align-self: flex-start;

    margin-top: auto;
    padding-top: 21px;

    color: var(--portfolio-blue);

    font-family: "DM Sans", sans-serif;

    font-size: 0.9rem;

    font-weight: 800;

    text-decoration: none;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}


.portfolio-link i {
    font-size: 0.78rem;

    transition: transform 0.25s ease;
}


.portfolio-link:hover {
    color: var(--portfolio-blue-light);

    gap: 11px;
}


.portfolio-link:hover i {
    transform: translateX(2px);
}


/* =========================================================
   13. PORTFOLIO PLACEHOLDER
   ---------------------------------------------------------
   Used when you want to show that more projects can be
   added later.
========================================================= */

.portfolio-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 390px;

    border-style: dashed;

    border-color: #cbdbea;

    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #ffffff
        );

    box-shadow: none;

    text-align: center;
}


.portfolio-placeholder:hover {
    transform: none;

    border-color: #a9c7e2;

    box-shadow: none;
}


.portfolio-placeholder .portfolio-content {
    align-items: center;

    justify-content: center;

    padding: 35px;
}


.portfolio-placeholder-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 50%;

    background: #eef6ff;

    color: var(--portfolio-blue);

    font-size: 1.3rem;
}


.portfolio-placeholder h3 {
    margin-top: 0;

    font-size: 1.15rem;
}


.portfolio-placeholder p {
    max-width: 330px;

    font-size: 0.9rem;
}


/* =========================================================
   14. FINAL CTA
========================================================= */

.cta-section {
    position: relative;

    overflow: hidden;

    padding: 100px 24px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(22, 185, 212, 0.15),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #041d4a 0%,
            #06265f 55%,
            #0756a3 100%
        );

    color: #ffffff;

    text-align: center;
}


/* CTA decorative circles */

.cta-section::before,
.cta-section::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.08);

    pointer-events: none;
}


.cta-section::before {
    width: 360px;
    height: 360px;

    left: -180px;
    top: -220px;
}


.cta-section::after {
    width: 280px;
    height: 280px;

    right: -140px;
    bottom: -190px;
}


.cta-container {
    width: min(100%, 780px);

    margin: 0 auto;

    position: relative;
    z-index: 2;
}


.cta-section .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 20px;

    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.20);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 0.76rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.cta-section h2 {
    margin: 0 0 20px;

    color: #ffffff;

    font-family: "Manrope", sans-serif;

    font-size: clamp(2rem, 4vw, 3.2rem);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.035em;
}


.cta-section h2 span {
    color: #6bd9e7;
}


.cta-section p {
    max-width: 680px;

    margin: 0 auto 30px;

    color: rgba(255, 255, 255, 0.80);

    font-family: "DM Sans", sans-serif;

    font-size: 1rem;

    line-height: 1.8;
}


/* =========================================================
   15. CTA BUTTON
   ---------------------------------------------------------
   This only provides portfolio CTA refinement.
   The general button system can remain in main.css.
========================================================= */

.cta-section .btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;

    padding: 14px 24px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 10px;

    background: #ffffff;

    color: var(--portfolio-blue-dark);

    font-family: "DM Sans", sans-serif;

    font-size: 0.92rem;

    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.14);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.cta-section .btn-hero-primary:hover {
    transform: translateY(-3px);

    background: #f4fbff;

    box-shadow:
        0 16px 35px rgba(0, 0, 0, 0.18);
}


.cta-section .btn-hero-primary i {
    transition: transform 0.25s ease;
}


.cta-section .btn-hero-primary:hover i {
    transform: translateX(3px);
}


/* =========================================================
   16. TABLET
========================================================= */

@media (max-width: 1050px) {

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 24px;
    }


    .page-header {
        min-height: 400px;

        padding-top: 80px;
        padding-bottom: 70px;
    }


    .portfolio-intro {
        padding: 85px 0 80px;
    }


    .portfolio-section {
        padding: 85px 0 90px;
    }


    .portfolio-content {
        padding: 23px 23px 25px;
    }


    .portfolio-image {
        min-height: 220px;
    }
}


/* =========================================================
   17. MOBILE
========================================================= */

@media (max-width: 700px) {

    .portfolio-container {
        width: min(
            calc(100% - 34px),
            var(--portfolio-container)
        );
    }


    /* Hero */

    .page-header {
        min-height: 390px;

        padding: 75px 17px 65px;

        align-items: center;
    }


    .page-header h1 {
        font-size: clamp(2.25rem, 10vw, 3.2rem);

        letter-spacing: -0.04em;
    }


    .page-header p {
        font-size: 0.97rem;

        line-height: 1.7;
    }


    /* Intro */

    .portfolio-intro {
        padding: 72px 0 70px;
    }


    .portfolio-intro h2 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }


    .portfolio-intro p {
        font-size: 0.94rem;

        line-height: 1.75;
    }


    /* Portfolio section */

    .portfolio-section {
        padding: 72px 0 78px;
    }


    .portfolio-section-heading {
        margin-bottom: 38px;
    }


    .portfolio-section-heading h2 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }


    .portfolio-section-heading p {
        font-size: 0.94rem;
    }


    /* Cards */

    .portfolio-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .portfolio-image {
        min-height: 225px;
    }


    .portfolio-content {
        padding: 24px 22px 25px;
    }


    .portfolio-content h3 {
        font-size: 1.18rem;
    }


    .portfolio-content p {
        font-size: 0.92rem;
    }


    .portfolio-placeholder {
        min-height: 330px;
    }


    /* CTA */

    .cta-section {
        padding: 78px 20px;
    }


    .cta-section h2 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }


    .cta-section p {
        font-size: 0.94rem;

        line-height: 1.75;
    }
}


/* =========================================================
   18. SMALL PHONES
========================================================= */

@media (max-width: 430px) {

    .portfolio-container {
        width: min(
            calc(100% - 28px),
            var(--portfolio-container)
        );
    }


    .page-header {
        min-height: 365px;

        padding: 65px 14px 55px;
    }


    .page-header .section-badge {
        font-size: 0.68rem;

        padding: 7px 11px;
    }


    .page-header h1 {
        font-size: 2.15rem;
    }


    .page-header p {
        font-size: 0.91rem;
    }


    .portfolio-intro {
        padding: 62px 0;
    }


    .portfolio-eyebrow {
        font-size: 0.7rem;
    }


    .portfolio-intro h2 {
        font-size: 1.85rem;
    }


    .portfolio-section {
        padding: 62px 0 68px;
    }


    .portfolio-section-heading .section-badge {
        font-size: 0.68rem;

        padding: 7px 11px;
    }


    .portfolio-section-heading h2 {
        font-size: 1.85rem;
    }


    .portfolio-image {
        min-height: 205px;
    }


    .portfolio-content {
        padding: 21px 19px 23px;
    }


    .portfolio-content h3 {
        font-size: 1.12rem;
    }


    .portfolio-content p {
        font-size: 0.9rem;
    }


    .portfolio-tag,
    .pulse-dotted {
        font-size: 0.66rem;

        padding: 5px 9px;
    }


    .portfolio-link {
        font-size: 0.86rem;
    }


    .portfolio-placeholder {
        min-height: 300px;
    }


    .cta-section {
        padding: 65px 17px;
    }


    .cta-section .section-badge {
        font-size: 0.68rem;

        padding: 7px 11px;
    }


    .cta-section h2 {
        font-size: 1.85rem;
    }


    .cta-section p {
        font-size: 0.9rem;
    }


    .cta-section .btn-hero-primary {
        width: 100%;

        max-width: 290px;

        min-height: 50px;
    }
}


/* =========================================================
   19. REDUCED MOTION
   ---------------------------------------------------------
   Respects users who prefer less animation.
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .portfolio-item,
    .portfolio-link,
    .portfolio-link i,
    .cta-section .btn-hero-primary,
    .cta-section .btn-hero-primary i {
        transition: none;
    }


    .portfolio-item:hover {
        transform: none;
    }


    .portfolio-item:hover .portfolio-image {
        background-size: cover;
    }


    .pulse-dot {
        animation: none;
    }
}