/* ===================================================
   Ageless Entertainments - Projects Portfolio Page Styles
   Clean, Premium, High-Energy Theme Matching Lovable App
   =================================================== */

/* ---------------------------------------------------
   1. PROJECTS HERO SECTION
   --------------------------------------------------- */
.projects-hero-wrapper {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue-deep, #030d28);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 140px 0 85px 0;
    color: #ffffff;
}

.projects-hero-with-video {
    min-height: 100vh;
    min-height: 100svh;
}

.projects-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Resolve video sizing against a stretched layer, even when content grows the hero. */
.projects-hero-media .projects-hero-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.projects-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.10) 50%,
        rgba(0, 0, 0, 0.30) 100%
    );
    z-index: 1;
}

.projects-hero-mesh {
    position: absolute;
    top: -15%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 161, 0, 0.22) 0%, rgba(0, 210, 255, 0.08) 50%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: meshPulseProjects 8s ease-in-out infinite alternate;
}

.projects-hero-mesh-left {
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(245, 161, 0, 0.08) 50%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: meshPulseProjects 10s ease-in-out infinite alternate-reverse;
}

@keyframes meshPulseProjects {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.15) translate(30px, 20px); opacity: 1; }
}

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

.projects-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 161, 0, 0.12);
    border: 1px solid rgba(245, 161, 0, 0.35);
    padding: 8px 18px;
    border-radius: 50px;
    color: var(--primary-orange, #f5a100);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(245, 161, 0, 0.15);
}

.projects-hero-badge .badge-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-orange, #f5a100);
    box-shadow: 0 0 10px var(--primary-orange, #f5a100);
    animation: badgeBlink 1.5s infinite;
}

.projects-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.projects-hero-title span.highlight-orange {
    color: #ff8500;
    -webkit-text-fill-color: #ff8500;
}

.projects-hero-subheading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 820px;
}

/* ---------------------------------------------------
   2. PROJECT CARDS (LOVABLE APP TWO-COLUMN GRID)
   --------------------------------------------------- */
.projects-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-top: 35px;
}

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

.portfolio-project-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(11, 23, 39, 0.06);
    transition: all 0.35s cubic-bezier(0.2, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 161, 0, 0.5);
    box-shadow: 0 20px 50px rgba(11, 23, 39, 0.12), 0 0 30px rgba(245, 161, 0, 0.12);
}

.project-card-thumb-wrap {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #030d28;
    cursor: pointer;
}

.project-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.portfolio-project-card:hover .project-card-thumb-wrap img {
    transform: scale(1.06);
}

.project-category-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(3, 13, 40, 0.88);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.project-action-circle {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-orange, #f5a100);
    color: #030d28;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(245, 161, 0, 0.4);
    transition: transform 0.3s ease;
    z-index: 2;
}

.portfolio-project-card:hover .project-action-circle {
    transform: scale(1.1) rotate(45deg);
}

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

.project-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
}

.project-meta-strip span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-meta-strip span i {
    color: var(--primary-orange, #f5a100);
    font-size: 1rem;
}

.project-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    color: #0b1727;
    line-height: 1.25;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.project-card-summary {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-view-study {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-orange, #f5a100);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-study:hover {
    color: #d97706;
    transform: translateX(4px);
}

/* ---------------------------------------------------
   3. CASE STUDY MODAL DRAWER
   --------------------------------------------------- */
.case-study-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 13, 40, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.case-study-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.case-study-modal-card {
    background: #0b1727;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
}

.case-study-modal-overlay.is-active .case-study-modal-card {
    transform: translateY(0);
}

.modal-media-header {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #030d28;
}

.modal-media-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 23, 39, 0.95) 0%, rgba(11, 23, 39, 0.4) 60%, rgba(11, 23, 39, 0.2) 100%);
}

.modal-media-info {
    position: absolute;
    bottom: 24px;
    left: 28px;
    right: 28px;
    z-index: 2;
}

.modal-project-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: #ffffff;
    margin: 6px 0 0 0;
    text-transform: uppercase;
}

.modal-details-body {
    padding: 30px;
}

.specs-data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
}

.specs-data-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-data-table td {
    padding: 12px 0;
}

.specs-data-table td:first-child {
    color: #94a3b8;
}

.specs-data-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: #ffffff;
}

/* ---------------------------------------------------
   4. HOW WE PARTNER STRIP
   --------------------------------------------------- */
.partner-feature-card {
    border-left: 3px solid var(--primary-orange, #f5a100);
    padding-left: 18px;
    margin-bottom: 20px;
}

.partner-feature-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    color: #0b1727;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.partner-feature-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
}
.about-cta-section.projects-cta-section {
    background: #000000;
}

.projects-cta-section .about-cta-glow {
    display: none;
}

.projects-cta-section .about-cta-heading {
    color: #ffffff;
}

.projects-cta-section .about-cta-heading span.cta-orange-glow {
    color: #f5a100;
}

.projects-cta-section .about-cta-text {
    color: #cbd5e1;
}

.projects-cta-section .about-cta-buttons .btn-glow-primary {
    background: #f5a100;
    color: #0b1727;
}
