/* ============================================================
   PORTFOLIO PAGE — elevatewebdynamics.ro
   Matches existing brand: dark bg, glass cards, blue accents
   ============================================================ */

/* ----------------------------------------------------------
   Portfolio Hero
   ---------------------------------------------------------- */
.portfolio-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, .14), rgba(0, 0, 0, .92));
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.portfolio-hero .hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 110, 253, .18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.portfolio-hero .container {
    position: relative;
    z-index: 2;
}

/* Hero Button Transitions & Hover Effects */
.portfolio-hero .hero-actions {
    justify-content: center !important;
}

.portfolio-hero .main-button {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease !important;
}

.portfolio-hero .main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4);
    background-color: #0b5ed7 !important; /* Slightly darker blue on hover */
}

.portfolio-hero .hero-secondary {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
    flex-direction: row !important; /* Keep icon on the left instead of reversing */
}

.portfolio-hero .hero-secondary::after {
    content: none !important; /* Remove the default CSS arrow */
}

.portfolio-hero .hero-secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}

/* ----------------------------------------------------------
   Filter Bar
   ---------------------------------------------------------- */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    padding: 2.5rem 0 1rem;
}

.portfolio-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .75);
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.portfolio-filter-btn:hover {
    border-color: rgba(13, 110, 253, .6);
    background: rgba(13, 110, 253, .1);
    color: #fff;
    transform: translateY(-2px);
}

.portfolio-filter-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(13, 110, 253, .35);
}

.portfolio-filter-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    font-size: .75rem;
    font-weight: 700;
}

.portfolio-filter-btn.active .filter-count {
    background: rgba(255, 255, 255, .25);
}

/* ----------------------------------------------------------
   Projects Grid
   ---------------------------------------------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0 4rem;
}

@media (max-width: 1199px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ----------------------------------------------------------
   Project Card
   ---------------------------------------------------------- */
.portfolio-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 1.6rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow .35s ease,
                border-color .35s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
    border-color: rgba(13, 110, 253, .35);
}

.portfolio-card.hidden-card {
    display: none;
}

/* Card image area */
.portfolio-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13, 110, 253, .12), rgba(111, 66, 193, .12));
}

.portfolio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.04);
}

/* Placeholder image (gradient) */
.portfolio-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: .35;
}

/* Private badge overlay on card image */
.portfolio-private-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-private-badge-img {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 193, 7, .15);
    border: 1px solid rgba(255, 193, 7, .4);
    color: #ffc107;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Card body */
.portfolio-card-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .75rem;
}

.portfolio-card-category {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .5);
}

.portfolio-card-category.cat-site { color: #6ea8fe; }
.portfolio-card-category.cat-ecommerce { color: #75b798; }
.portfolio-card-category.cat-app { color: #c29ffa; }

.portfolio-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.portfolio-card-desc {
    color: rgba(255, 255, 255, .6);
    font-size: .93rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.portfolio-card-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}

/* Visit website button */
.portfolio-btn-visit {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1.3rem;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
    flex-shrink: 0;
}

.portfolio-btn-visit:hover {
    background: #0b5ed7;
    color: #fff;
    box-shadow: 0 4px 18px rgba(13, 110, 253, .4);
    transform: translateY(-1px);
}

/* Details link */
.portfolio-btn-details {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255, 255, 255, .65);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.portfolio-btn-details:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .4);
}

/* Private project text */
.portfolio-private-text {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1.3rem;
    border-radius: 999px;
    background: rgba(255, 193, 7, .1);
    border: 1px solid rgba(255, 193, 7, .3);
    color: #ffc107;
    font-size: .85rem;
    font-weight: 600;
    flex-shrink: 0;
    cursor: default;
    user-select: none;
}

/* ----------------------------------------------------------
   Stats Strip
   ---------------------------------------------------------- */
.portfolio-stats-strip {
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    padding: 2.5rem 0;
    background: rgba(255, 255, 255, .02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portfolio-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

@media (max-width: 767px) {
    .portfolio-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .portfolio-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.portfolio-stat-item .stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: .3rem;
}

.portfolio-stat-item .stat-label {
    font-size: .8rem;
    color: rgba(255, 255, 255, .5);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ----------------------------------------------------------
   Project Detail Page
   ---------------------------------------------------------- */

/* Detail Hero */
.project-detail-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, .14), rgba(0, 0, 0, .93));
    padding: 9rem 0 4rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .project-detail-hero {
        padding: 7rem 0 3rem;
    }
}

.project-detail-hero .glow-orb-hero {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 110, 253, .2) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.project-category-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 1.2rem;
}

.project-category-pill.cat-site {
    background: rgba(110, 168, 254, .12);
    border: 1px solid rgba(110, 168, 254, .3);
    color: #6ea8fe;
}
.project-category-pill.cat-ecommerce {
    background: rgba(117, 183, 152, .12);
    border: 1px solid rgba(117, 183, 152, .3);
    color: #75b798;
}
.project-category-pill.cat-app {
    background: rgba(194, 159, 250, .12);
    border: 1px solid rgba(194, 159, 250, .3);
    color: #c29ffa;
}

.project-detail-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #fff;
}

.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.project-meta-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .45);
}

.project-meta-value {
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
}

/* Info Card (right column in hero) */
.project-info-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-info-row {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.project-info-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* Tech stack tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .4rem;
}

.tech-tag-sm {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    border-radius: 6px;
    background: rgba(13, 110, 253, .1);
    border: 1px solid rgba(13, 110, 253, .2);
    color: #6ea8fe;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
}

/* Screenshots gallery */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

@media (max-width: 767px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }
}

.project-gallery-item {
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.project-gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: rgba(255, 255, 255, .2);
    font-size: .85rem;
    text-align: center;
    padding: 1rem;
    width: 100%;
    height: 100%;
}

.gallery-placeholder i {
    font-size: 2rem;
    opacity: .3;
}

/* Challenge / Solution cards */
.challenge-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 767px) {
    .challenge-solution-grid {
        grid-template-columns: 1fr;
    }
}

.challenge-card,
.solution-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 1.4rem;
    padding: 1.8rem;
}

.challenge-card {
    border-left: 3px solid rgba(255, 193, 7, .5);
}

.solution-card {
    border-left: 3px solid rgba(13, 110, 253, .5);
}

/* Results metrics */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 767px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.result-metric-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 1.4rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform .3s ease, border-color .3s ease;
}

.result-metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 110, 253, .3);
}

.result-metric-card .metric-value {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: #0d6efd;
    line-height: 1.1;
    margin-bottom: .4rem;
}

.result-metric-card .metric-label {
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Testimonial card */
.portfolio-testimonial {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 1.75rem;
    padding: 2.5rem;
    position: relative;
}

.portfolio-testimonial::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 6rem;
    line-height: 1;
    color: rgba(13, 110, 253, .15);
    font-family: Georgia, serif;
    pointer-events: none;
}

.portfolio-testimonial blockquote {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-author-name {
    font-weight: 700;
    color: #fff;
    margin-bottom: .15rem;
    font-size: .95rem;
}

.testimonial-author-role {
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
}

.stars-row {
    display: flex;
    gap: .25rem;
    margin-bottom: .75rem;
    color: #ffc107;
    font-size: .9rem;
}

/* Related projects */
.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Private project banner (detail page) */
.private-project-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 193, 7, .07);
    border: 1px solid rgba(255, 193, 7, .25);
    border-radius: 1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .75);
    font-size: .92rem;
}

.private-project-banner i {
    font-size: 1.4rem;
    color: #ffc107;
    flex-shrink: 0;
}

/* Section heading style */
.portfolio-section-heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.portfolio-section-heading::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.2em;
    background: linear-gradient(180deg, #0d6efd, #6610f2);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Section spacer */
.portfolio-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

@media (max-width: 767px) {
    .portfolio-section {
        padding: 2.5rem 0;
    }
}

/* Breadcrumb back link */
.portfolio-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .5);
    font-size: .88rem;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color .2s ease;
    width: fit-content;
}

.portfolio-breadcrumb:hover {
    color: #6ea8fe;
}

/* Empty state */
.portfolio-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, .35);
    display: none;
}

.portfolio-empty.visible {
    display: block;
}

/* No-JS fallback: show all cards */
.no-js .portfolio-card.hidden-card {
    display: flex;
}

/* Smooth filter transition */
.portfolio-card {
    transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow .35s ease,
                border-color .35s ease,
                opacity .25s ease;
}

.portfolio-card.filtering-out {
    opacity: 0;
    transform: scale(0.97);
}

/* ----------------------------------------------------------
   Mobile/Tablet Filter Dropdown
   ---------------------------------------------------------- */
.portfolio-filter-mobile {
    padding: 1.5rem 0 1rem;
    max-width: 320px;
    margin: 0 auto;
}

.portfolio-select-wrapper {
    position: relative;
    width: 100%;
}

.portfolio-filter-select {
    width: 100%;
    padding: 0.8rem 2.8rem 0.8rem 1.4rem;
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.portfolio-filter-select option {
    background-color: #0b0f19;
    color: #fff;
}

.portfolio-filter-select:hover {
    border-color: rgba(13, 110, 253, 0.6);
    background: rgba(13, 110, 253, 0.05);
    transform: translateY(-1px);
}

.portfolio-filter-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.portfolio-select-wrapper .select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    transition: transform 0.25s ease, color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-filter-select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #0d6efd;
}

/* ----------------------------------------------------------
   Premium Device Showcase (Mockups)
   ---------------------------------------------------------- */
.project-showcase-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .project-showcase-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
}

/* MacBook Pro CSS Mockup */
.device-macbook {
    position: relative;
    width: 100%;
    max-width: 680px;
    flex-shrink: 0;
}

.device-macbook .laptop-screen {
    position: relative;
    background: #080808;
    border-radius: 16px 16px 0 0;
    padding: 10px 10px 0 10px;
    border: 3px solid #282828;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.device-macbook .laptop-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #0f1319;
    overflow-y: auto;
    border-radius: 6px 6px 0 0;
    /* Hide scrollbar but keep functionality */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.device-macbook .laptop-viewport::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.device-macbook .laptop-viewport img {
    width: 100%;
    height: auto;
    display: block;
}

.device-macbook .laptop-base {
    position: relative;
    width: 110%;
    left: -5%;
    height: 12px;
    background: linear-gradient(to bottom, #cfd2d6, #8b8e93);
    border-radius: 0 0 10px 10px;
    border-bottom: 2px solid #585b5f;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.device-macbook .laptop-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: #1e1e1e;
    border-radius: 0 0 6px 6px;
}

/* iPhone 15 Pro CSS Mockup */
.device-iphone {
    position: relative;
    width: 240px;
    flex-shrink: 0;
    z-index: 10;
    margin-bottom: -1rem; /* Overlap effect */
}

@media (max-width: 991px) {
    .device-iphone {
        margin-bottom: 0;
    }
}

.device-iphone .phone-frame {
    position: relative;
    background: #0a0a0a;
    border-radius: 36px;
    padding: 9px;
    border: 3px solid #333;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.device-iphone .phone-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background: #0f1319;
    overflow-y: auto;
    border-radius: 28px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.device-iphone .phone-viewport::-webkit-scrollbar {
    display: none;
}

.device-iphone .phone-viewport img {
    width: 100%;
    height: auto;
    display: block;
}

.device-iphone .dynamic-island {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 18px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

/* Interactive Hint Overlay */
.showcase-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(13, 110, 253, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadePulse 2s infinite ease-in-out;
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

