/* Page Wrapper & Ambient Glows */
.portfolio-page {
    position: relative;
    padding-top: 0;
    overflow: hidden;
}

.ambient-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    top: 5%;
    left: -100px;
    background: var(--primary);
}

.glow-2 {
    top: 45%;
    right: -100px;
    background: var(--primary-dark);
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.badge-pill {
    background: rgba(250, 128, 114, 0.15);
    border: 1px solid rgba(250, 128, 114, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.4rem;
    color: var(--secondary);
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* 1. Hero Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(43, 38, 39, 0.88), rgba(224, 102, 88, 0.75)),
        url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    color: white;
    padding: 6rem 5%;
    border-radius: calc(var(--radius) * 2);
    margin-bottom: 3.5rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(43, 38, 39, 0.15);
}

.hero-overlay-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%);
    animation: shimmer 8s infinite linear;
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    margin: 1.2rem 0;
    line-height: 1.15;
    font-weight: 800;
}

.hero-description {
    font-size: 1.15rem;
    color: #f3e8e6;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Interactive Buttons */
.btn-hero {
    background: var(--primary);
    color: white;
    padding: 0.95rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(250, 128, 114, 0.35);
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(250, 128, 114, 0.5);
}

.btn-pulse {
    animation: pulseGlow 2.5s infinite;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 0.95rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--secondary);
    transform: translateY(-3px);
}

.btn-light {
    background: white;
    color: var(--secondary);
    padding: 0.95rem 2.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

/* 2. Dynamic Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: 0 10px 30px rgba(43, 38, 39, 0.05);
    margin-bottom: 5rem;
    text-align: center;
    border: 1px solid rgba(250, 128, 114, 0.12);
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* 3. Owner Section */
.owner-section {
    margin-bottom: 6rem;
}

.owner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    align-items: center;
}

.owner-image-wrapper {
    position: relative;
}

.img-frame {
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(43, 38, 39, 0.12);
    transition: transform 0.4s ease;
}

.owner-image-wrapper:hover .img-frame {
    transform: scale(1.02);
}

.owner-img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background: var(--secondary);
    color: white;
    padding: 1rem 1.6rem;
    border-radius: calc(var(--radius) * 1.5);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 25px rgba(43, 38, 39, 0.25);
    border: 2px solid var(--primary);
}

.badge-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.experience-badge strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.1;
}

.experience-badge small {
    color: #bdc3c7;
    font-size: 0.8rem;
}

.owner-info h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-top: 0.2rem;
}

.owner-subtitle {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.portfolio-text {
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.02rem;
}

.highlight-card {
    margin-top: 2rem;
    background: var(--surface);
    padding: 1.8rem;
    border-radius: calc(var(--radius) * 1.2);
    border-left: 4px solid var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.specialties-container h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 1.1rem;
}

.specialties-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: transform 0.2s;
}

.specialty-item:hover {
    transform: translateX(4px);
}

.check-icon {
    color: var(--primary);
    font-weight: bold;
    background: rgba(250, 128, 114, 0.12);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* 4. Gallery Section */
.gallery-section {
    margin-bottom: 6rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.8rem;
}

.gallery-card {
    position: relative;
    border-radius: calc(var(--radius) * 1.5);
    overflow: hidden;
    height: 320px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.gallery-image-container {
    width: 100%;
    height: 100%;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 38, 39, 0.95) 15%, rgba(43, 38, 39, 0.2) 60%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
    transition: opacity 0.3s ease;
}

.gallery-category {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
}

.gallery-title {
    font-size: 1.2rem;
    margin-top: 0.2rem;
    font-weight: 700;
}

.view-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-card:hover .view-link {
    opacity: 1;
    transform: translateY(0);
}

/* 5. Testimonials */
.testimonials-section {
    margin-bottom: 6rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    position: relative;
    background: var(--surface);
    padding: 2.2rem;
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(250, 128, 114, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(250, 128, 114, 0.12);
}

.quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    color: rgba(250, 128, 114, 0.12);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.stars {
    color: #f1c40f;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.testimonial-comment {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    display: block;
    color: var(--secondary);
    font-size: 1.05rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 6. CTA Banner */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, var(--secondary), #1e1a1b);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cta-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: shimmerRow 3s infinite linear;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #d1c7c7;
    margin-bottom: 2.2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Keyframe Animations */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 128, 114, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(250, 128, 114, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(250, 128, 114, 0);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.float-animation {
    animation: floatSlow 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmerRow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Scroll Entrance Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}






/* PopUp */
/* =========================================================
   DYNAMIC DETAIL MODAL / POPUP
   ========================================================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1.5rem;

    background: rgba(20, 16, 17, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    position: relative;

    width: min(920px, 100%);
    max-height: 90vh;

    background: var(--surface, #fff);
    color: var(--text-main, #2b2627);

    border-radius: calc(var(--radius, 12px) * 1.5);
    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 10px 30px rgba(0, 0, 0, 0.15);

    transform: translateY(25px) scale(0.96);
    opacity: 0;

    transition:
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.25s ease;
}

.modal-backdrop.is-active .modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(43, 38, 39, 0.75);
    color: #fff;

    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--primary, #fa8072);
    transform: rotate(90deg) scale(1.05);
}

.modal-close:focus-visible {
    outline: 3px solid rgba(250, 128, 114, 0.4);
    outline-offset: 3px;
}

/* Modal layout */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;

    width: 100%;
    max-height: 90vh;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: var(--primary, #fa8072) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 7px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary, #fa8072);
    border-radius: 20px;
}

/* Image */
.modal-image-wrapper {
    width: 100%;
    min-height: 420px;

    background: rgba(250, 128, 114, 0.08);
    overflow: hidden;
}

.modal-image-wrapper img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 420px;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.modal-backdrop.is-active .modal-image-wrapper img {
    transform: scale(1.01);
}

/* Details */
.modal-details {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    padding: 3rem;
}

.modal-badge {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    max-width: 100%;

    padding: 0.4rem 0.9rem;

    border-radius: 50px;

    background: rgba(250, 128, 114, 0.12);
    border: 1px solid rgba(250, 128, 114, 0.2);

    color: var(--primary, #fa8072);

    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 1rem;
}

.modal-title {
    margin: 0 0 1rem;

    color: var(--secondary, #2b2627);

    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
    font-weight: 800;

    overflow-wrap: anywhere;
}

.modal-description {
    margin: 0;

    color: var(--text-muted, #777);

    font-size: 1rem;
    line-height: 1.8;

    overflow-wrap: anywhere;
}

.modal-meta {
    margin-top: 1.5rem;

    padding: 0.9rem 1rem;

    border-left: 3px solid var(--primary, #fa8072);
    border-radius: 0 8px 8px 0;

    background: rgba(250, 128, 114, 0.07);

    color: var(--text-muted, #777);

    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;

    margin-top: 2rem;
}

.modal-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .modal-backdrop {
        padding: 1rem;
    }

    .modal-container {
        width: min(680px, 100%);
        max-height: 92vh;
    }

    .modal-body {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }

    .modal-image-wrapper {
        min-height: 280px;
        max-height: 360px;
    }

    .modal-image-wrapper img {
        min-height: 280px;
        max-height: 360px;
    }

    .modal-details {
        padding: 2rem;
    }

    .modal-title {
        font-size: 2rem;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .modal-backdrop {
        padding: 0.7rem;
    }

    .modal-container {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px;
    }

    .modal-body {
        display: block;
        max-height: 94vh;
        overflow-y: auto;
    }

    .modal-image-wrapper {
        width: 100%;
        height: 48vw;
        min-height: 220px;
        max-height: 300px;
    }

    .modal-image-wrapper img {
        width: 100%;
        height: 100%;
        min-height: 220px;
        max-height: 300px;
        object-fit: cover;
    }

    .modal-details {
        padding: 1.5rem;
    }

    .modal-badge {
        font-size: 0.68rem;
        margin-bottom: 0.75rem;
    }

    .modal-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .modal-description {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .modal-meta {
        margin-top: 1rem;
        font-size: 0.85rem;
    }

    .modal-actions {
        margin-top: 1.5rem;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}

/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 360px) {

    .modal-backdrop {
        padding: 0.4rem;
    }

    .modal-container {
        border-radius: 14px;
    }

    .modal-details {
        padding: 1.2rem;
    }

    .modal-image-wrapper {
        min-height: 190px;
        height: 52vw;
    }

    .modal-image-wrapper img {
        min-height: 190px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-description {
        font-size: 0.9rem;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .modal-backdrop,
    .modal-container,
    .modal-close,
    .modal-image-wrapper img {
        transition: none;
    }

    .modal-backdrop.is-active .modal-image-wrapper img {
        transform: none;
    }
}