/* ==================================================
   GRAPHIC DESIGN PORTFOLIO PAGE
================================================== */

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

.graphic-portfolio-hero {
    padding: 150px 0 90px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(120, 85, 255, 0.14), transparent 28%),
        radial-gradient(circle at 70% 80%, rgba(255, 143, 74, 0.12), transparent 25%),
        var(--light-bg);
}

.graphic-portfolio-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.graphic-portfolio-hero-content .section-label {
    margin-bottom: 20px;
}

.graphic-portfolio-hero-content h1 {
    max-width: 680px;
    margin-bottom: 22px;
    font-size: clamp(2.45rem, 5vw, 4.35rem);
    line-height: 1.15;
}

.graphic-portfolio-hero-content h1 span,
.graphic-portfolio-approach-content h2 span,
.graphic-portfolio-cta-content h2 span {
    color: var(--primary-color);
}

.graphic-portfolio-hero-content > p {
    max-width: 620px;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 1.03rem;
    line-height: 1.8;
}

.graphic-portfolio-hero-actions,
.graphic-portfolio-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.graphic-portfolio-hero-actions .btn,
.graphic-portfolio-cta-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.graphic-portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.graphic-portfolio-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 700;
}

.graphic-portfolio-tags i {
    color: var(--primary-color);
}

/* ==================================================
   HERO DESIGN BOARD
================================================== */

.graphic-portfolio-hero-visual {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-design-board {
    position: relative;
    z-index: 1;
    width: min(100%, 455px);
    min-height: 355px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: 0 25px 55px rgba(35, 24, 74, 0.16);
    transform: rotate(-3deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.graphic-design-board:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 30px 65px rgba(35, 24, 74, 0.22);
}

.design-board-top {
    display: flex;
    gap: 7px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(125, 92, 255, 0.07);
}

.design-board-top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-color);
}

.design-board-top span:nth-child(2) {
    background: #f59e0b;
}

.design-board-top span:nth-child(3) {
    background: #ec4899;
}

.design-board-content {
    min-height: 310px;
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, 0.08), transparent 55%),
        var(--card-bg);
}

.design-board-label {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.design-board-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 25px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.12;
}

.design-board-title span {
    color: var(--text-color);
}

.design-board-title strong {
    color: var(--primary-color);
}

.design-color-palette {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}

.design-color-palette span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.design-color-palette span:nth-child(1) {
    background: #6d4aff;
}

.design-color-palette span:nth-child(2) {
    background: #f97316;
}

.design-color-palette span:nth-child(3) {
    background: #ec4899;
}

.design-color-palette span:nth-child(4) {
    background: #1e293b;
}

.design-board-layout {
    display: grid;
    grid-template-columns: 1.45fr 0.8fr;
    gap: 14px;
}

.design-layout-main {
    min-height: 88px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
        linear-gradient(135deg, #6d4aff, #9a75ff);
}

.design-layout-side {
    display: grid;
    gap: 14px;
}

.design-layout-side span {
    min-height: 37px;
    border-radius: 9px;
    background: rgba(109, 74, 255, 0.16);
}

.design-layout-side span:last-child {
    background: rgba(249, 115, 22, 0.22);
}

.graphic-visual-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 14px 30px rgba(35, 24, 74, 0.14);
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 800;
}

.graphic-visual-badge i {
    color: var(--primary-color);
}

.badge-brand {
    top: 36px;
    right: -10px;
}

.badge-visual {
    bottom: 24px;
    left: -20px;
}

/* ==================================================
   BREADCRUMB
================================================== */

.breadcrumb-section {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.breadcrumb a {
    color: var(--text-light);
    font-weight: 700;
    transition: color 0.25s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    color: var(--text-light);
    font-size: 0.68rem;
}

.breadcrumb .active-page {
    color: var(--primary-color);
    font-weight: 800;
}

/* ==================================================
   FEATURED DESIGN PROJECTS
================================================== */

.graphic-portfolio-projects {
    background: var(--light-bg);
}

.graphic-portfolio-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.graphic-portfolio-project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: 0 10px 28px rgba(35, 24, 74, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graphic-portfolio-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 42px rgba(35, 24, 74, 0.15);
}

.graphic-project-preview {
    min-height: 250px;
    padding: 26px;
    overflow: hidden;
}

.graphic-project-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.graphic-project-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: var(--primary-color);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.graphic-project-card-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.graphic-project-card-content > p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.7;
}

.graphic-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.graphic-project-tags span {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--light-bg);
    color: var(--text-light);
    font-size: 0.74rem;
    font-weight: 700;
}

.graphic-project-card-content .text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 800;
}

.graphic-project-card-content .text-link i {
    transition: transform 0.25s ease;
}

.graphic-project-card-content .text-link:hover i {
    transform: translateX(5px);
}

/* Logo preview */

.logo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.16), transparent 22%),
        linear-gradient(135deg, #2f1c59, #7650d8);
}

.logo-preview-mark {
    display: grid;
    width: 95px;
    height: 95px;
    margin-bottom: 18px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    transform: rotate(-8deg);
}

.logo-preview-mark span {
    font-family: "Poppins", sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    transform: rotate(8deg);
}

.logo-preview-lines {
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
}

.logo-preview-lines span {
    width: 26px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.logo-preview p {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Social media preview */

.social-preview {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background: linear-gradient(135deg, #f05d3a, #ec4899);
}

.social-preview-header {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.social-preview-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-preview-shape {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    border: 8px solid rgba(255, 255, 255, 0.9);
    border-radius: 50% 50% 18px 50%;
    transform: rotate(-28deg);
}

.social-preview-main h3 {
    margin-bottom: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 1.65rem;
    line-height: 1.05;
}

.social-preview-main p {
    font-size: 0.75rem;
    line-height: 1.45;
}

.social-preview-footer {
    display: flex;
    gap: 8px;
}

.social-preview-footer span {
    width: 34px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.social-preview-footer span:first-child {
    width: 56px;
    background: #ffffff;
}

/* Poster preview */

.poster-preview {
    position: relative;
    color: #172033;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 40%),
        #f5c742;
}

.poster-preview-kicker {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.poster-preview h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    line-height: 1.02;
}

.poster-preview > p {
    position: relative;
    z-index: 1;
    max-width: 165px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
}

.poster-preview-date {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #172033;
    color: #ffffff;
}

.poster-preview-date span {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.poster-preview-date small {
    margin-top: 3px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.poster-preview-shapes span {
    position: absolute;
    border-radius: 50%;
    background: rgba(23, 32, 51, 0.18);
}

.poster-preview-shapes span:nth-child(1) {
    top: -25px;
    right: 32px;
    width: 90px;
    height: 90px;
}

.poster-preview-shapes span:nth-child(2) {
    bottom: -35px;
    left: 42%;
    width: 120px;
    height: 120px;
}

.poster-preview-shapes span:nth-child(3) {
    top: 45%;
    right: 14%;
    width: 25px;
    height: 25px;
    background: #ec4899;
}

/* ==================================================
   DESIGN APPROACH
================================================== */

.graphic-portfolio-approach {
    background: var(--card-bg);
}

.graphic-portfolio-approach-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.graphic-portfolio-approach-content h2 {
    margin: 16px 0 20px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.2;
}

.graphic-portfolio-approach-content > p {
    max-width: 570px;
    margin-bottom: 26px;
    color: var(--text-light);
    line-height: 1.8;
}

.graphic-portfolio-approach-content .text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 800;
}

.graphic-portfolio-feature-list {
    display: grid;
    gap: 16px;
}

.graphic-portfolio-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graphic-portfolio-feature-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 26px rgba(35, 24, 74, 0.1);
}

.graphic-feature-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 12px;
    background: rgba(109, 74, 255, 0.12);
    color: var(--primary-color);
    font-size: 1.05rem;
}

.graphic-portfolio-feature-card h3 {
    margin-bottom: 7px;
    font-size: 1.05rem;
}

.graphic-portfolio-feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==================================================
   FINAL CTA
================================================== */

.graphic-portfolio-cta {
    padding: 90px 0;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 22%),
        linear-gradient(135deg, #3d2582, #6d4aff);
}

.graphic-portfolio-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.graphic-portfolio-cta .section-label {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.graphic-portfolio-cta .section-label i {
    color: #ffffff;
}

.graphic-portfolio-cta-content h2 {
    margin: 18px 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.2;
}

.graphic-portfolio-cta-content h2 span {
    color: #ffd166;
}

.graphic-portfolio-cta-content > p {
    max-width: 680px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.graphic-portfolio-cta-actions {
    justify-content: center;
}

.graphic-portfolio-cta .btn-primary {
    background: #ffffff;
    color: #4b2aa0;
}

.graphic-portfolio-cta .btn-primary:hover {
    background: #f6f1ff;
}

.graphic-portfolio-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.graphic-portfolio-cta .btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* ==================================================
   DARK MODE
================================================== */

body.dark-mode .graphic-portfolio-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(135, 101, 255, 0.16), transparent 28%),
        radial-gradient(circle at 70% 80%, rgba(255, 143, 74, 0.1), transparent 25%),
        var(--light-bg);
}

body.dark-mode .graphic-design-board {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.32);
}

body.dark-mode .design-board-top {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .design-board-content {
    background:
        linear-gradient(135deg, rgba(135, 101, 255, 0.16), transparent 55%),
        var(--card-bg);
}

body.dark-mode .graphic-visual-badge {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

body.dark-mode .graphic-portfolio-project-card {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

body.dark-mode .graphic-portfolio-feature-card {
    border-color: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 1050px) {
    .graphic-portfolio-hero-grid,
    .graphic-portfolio-approach-grid {
        gap: 45px;
    }

    .graphic-portfolio-project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .graphic-portfolio-project-card:last-child {
        grid-column: span 2;
        max-width: calc(50% - 13px);
        justify-self: center;
    }
}

@media (max-width: 800px) {
    .graphic-portfolio-hero {
        padding: 125px 0 70px;
    }

    .graphic-portfolio-hero-grid,
    .graphic-portfolio-approach-grid {
        grid-template-columns: 1fr;
    }

    .graphic-portfolio-hero-content {
        text-align: center;
    }

    .graphic-portfolio-hero-content > p {
        margin-right: auto;
        margin-left: auto;
    }

    .graphic-portfolio-hero-actions,
    .graphic-portfolio-tags {
        justify-content: center;
    }

    .graphic-portfolio-hero-visual {
        min-height: 380px;
        margin-top: 10px;
    }

    .graphic-portfolio-approach-content {
        text-align: center;
    }

    .graphic-portfolio-approach-content > p {
        margin-right: auto;
        margin-left: auto;
    }

    .graphic-portfolio-project-card:last-child {
        max-width: none;
    }
}

@media (max-width: 620px) {
    .graphic-portfolio-hero {
        padding: 115px 0 60px;
    }

    .graphic-portfolio-hero-actions,
    .graphic-portfolio-cta-actions {
        flex-direction: column;
    }

    .graphic-portfolio-hero-actions .btn,
    .graphic-portfolio-cta-actions .btn {
        width: 100%;
    }

    .graphic-portfolio-tags {
        display: grid;
        grid-template-columns: 1fr;
    }

    .graphic-portfolio-tags span {
        justify-content: center;
    }

    .graphic-portfolio-hero-visual {
        min-height: 320px;
    }

    .graphic-design-board {
        min-height: 290px;
        transform: rotate(0deg);
    }

    .design-board-content {
        min-height: 245px;
        padding: 23px;
    }

    .design-board-title {
        font-size: 1.55rem;
    }

    .badge-brand {
        top: 10px;
        right: -4px;
    }

    .badge-visual {
        bottom: 8px;
        left: -4px;
    }

    .graphic-visual-badge {
        padding: 9px 10px;
        font-size: 0.7rem;
    }

    .graphic-portfolio-project-grid {
        grid-template-columns: 1fr;
    }

    .graphic-portfolio-project-card:last-child {
        grid-column: auto;
    }

    .graphic-project-preview {
        min-height: 230px;
    }

    .graphic-portfolio-feature-card {
        gap: 14px;
        padding: 18px;
    }

    .graphic-feature-icon {
        width: 42px;
        height: 42px;
    }

    .graphic-portfolio-cta {
        padding: 70px 0;
    }
}


/* ==================================================
   GRAPHIC DESIGN HERO FLOATING BADGES
================================================== */

.graphic-portfolio-hero-visual {
    position: relative;
    overflow: visible;
}

.graphic-visual-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    max-width: calc(100% - 12px);
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(25, 35, 58, 0.94);
    color: #f4f7fb;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
}

.graphic-visual-badge i {
    color: var(--primary-color);
    font-size: 0.92rem;
}

/* Both badges sit to the right of the design-board card */
.graphic-portfolio-hero-visual .badge-brand {
    top: 16%;
    right: -42px;
    left: auto;
    animation: graphicBadgeFloatUp 4s ease-in-out infinite;
}

.graphic-portfolio-hero-visual .badge-visual {
    right: -42px;
    bottom: 14%;
    left: auto;
    animation: graphicBadgeFloatDown 4.6s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes graphicBadgeFloatUp {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-9px) rotate(1deg);
    }
}

@keyframes graphicBadgeFloatDown {
    0%,
    100% {
        transform: translateY(0) rotate(1deg);
    }

    50% {
        transform: translateY(9px) rotate(-1deg);
    }
}

.graphic-visual-badge:hover {
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.38);
    filter: brightness(1.08);
}

/* Light theme */
body:not(.dark-theme) .graphic-visual-badge {
    border-color: rgba(38, 101, 235, 0.18);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-color);
    box-shadow: 0 14px 30px rgba(20, 35, 65, 0.14);
}

/* Tablet and mobile: keep them inside the visual area */
@media (max-width: 900px) {
    .graphic-portfolio-hero-visual .badge-brand {
        top: 10%;
        right: 8px;
    }

    .graphic-portfolio-hero-visual .badge-visual {
        right: 8px;
        bottom: 8%;
    }
}

@media (max-width: 480px) {
    .graphic-visual-badge {
        gap: 7px;
        padding: 8px 10px;
        font-size: 0.7rem;
    }

    .graphic-visual-badge i {
        font-size: 0.78rem;
    }
}