/* Vervy Project Specific Styles */

.vervy-project {
    background: #f8f9fa;
}

/* Hero Section */
.vervy-hero {
    background: var(--color-background);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.vervy-hero::before {
    content: none;
}

.vervy-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Hero Video */
.vervy-hero__video {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 3rem;
}

/* Project Title */
.vervy-title {
    font-size: 4rem;
    font-weight: 700;
    color: #424242;
    margin-top: -15.4375rem;
    margin-bottom: 3rem;
    font-family: 'Outfit', sans-serif;
    position: relative;
    z-index: 3;
}

/* Info Card */
.vervy-info-card {
    background: #B1E6FF;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 1000px;
    margin: -0.0625rem auto 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.vervy-info-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.vervy-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #424242;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.vervy-info-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.vervy-info-section {
    margin-bottom: 2rem;
}

.vervy-info-section h3 {
    color: #424242;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.vervy-info-section p {
    color: #424242;
    line-height: 1.6;
    font-size: 1rem;
}

.vervy-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vervy-info-item h4 {
    color: #424242;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.vervy-info-item p {
    color: #424242;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Video Player in Hero */
.vervy-video__player {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: #000;
}

/* Summary Section */
.vervy-summary {
    padding: 6rem 0;
    text-align: center;
}

.vervy-summary__title {
    font-size: 3rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 4rem;
    font-family: 'Outfit', sans-serif;
}

.vervy-summary__blobs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vervy-blob {
    background: url('../../assets/images/projects/Vervy/Puddle_Summary.svg') no-repeat center center;
    background-size: contain;
    border-radius: 0;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: none;
    transition: transform 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vervy-blob:hover {
    transform: translateY(-5px);
}

.vervy-blob__icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.vervy-blob__icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.vervy-blob h3 {
    color: #424242;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.vervy-blob p {
    color: #424242;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Current Problem Section */
.vervy-problem {
    padding: 6rem 0;
    background: white;
}

.vervy-problem__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 3rem;
    font-family: 'Outfit', sans-serif;
}

.vervy-problem__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vervy-problem__image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.vervy-problem__text p {
    color: #424242;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.vervy-problem__text ul {
    list-style: none;
    padding: 0;
}

.vervy-problem__text li {
    color: #424242;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.vervy-problem__text li::before {
    content: '•';
    color: #64b5f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Research Section */
.vervy-research {
    padding: 6rem 0;
    background: #f8f9fa;
}

.vervy-research__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 3rem;
    font-family: 'Outfit', sans-serif;
}

.vervy-research__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.vervy-research__item {
    text-align: center;
}

.vervy-research__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.vervy-research__item p {
    color: #424242;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mockups Section */
.vervy-mockups {
    padding: 6rem 0;
    background: white;
}

.vervy-mockups__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.vervy-mockups__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.vervy-mockup {
    text-align: center;
}

.vervy-mockup img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.vervy-mockup img:hover {
    transform: scale(1.05);
}

/* Family Persona Section */
.vervy-family {
    padding: 6rem 0;
    background: white;
}

.vervy-family .container {
    max-width: 1400px;
}

.vervy-family__content {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.vervy-family__image {
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.vervy-family__image img {
    width: 100%;
    height: 75%;
    max-height: 75%;
    object-fit: contain;
    object-position: top;
    display: block;
}

.vervy-family__text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vervy-family__title {
    font-size: 2rem;
    font-weight: 700;
    color: #424242;
}

.vervy-family__person h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 0.5rem;
}

.vervy-family__person p {
    color: #424242;
    line-height: 1.6;
}

/* Personas Insights Section */
.vervy-personas-insights {
    padding: 6rem 0;
    background: #A3E2FF;
}

/* Creativity Phase */
.vervy-creativity {
    padding: 6rem 0 3rem;
    background: #f8f9fa;
}

.vervy-creativity__title {
    font-size: 3rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
}

.vervy-creativity__layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* grid left slightly wider like screenshot */
    gap: 2rem;
    align-items: start;
}

.vervy-creativity__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 0.75rem;
    max-width: 560px;
}

.vervy-creativity__grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.vervy-creativity__text p {
    color: #424242;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Preconcept cards */
.vervy-preconcept {
    padding: 2rem 0 6rem;
}

/* Pre-concept Final Section */
.vervy-preconcept-final {
    padding: 6rem 0;
    background: white;
}

.vervy-preconcept-final__title {
    font-size: 3rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 4rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

/* Sporty Buddy Section */
.vervy-preconcept-buddy {
    margin-bottom: 4rem;
}

.vervy-preconcept-buddy__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vervy-preconcept-buddy__title {
    font-size: 2rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
}

.vervy-preconcept-buddy__text p {
    color: #424242;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.vervy-preconcept-buddy__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vervy-preconcept-buddy__image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Pretotyping Section */
.vervy-pretotyping {
    padding: 6rem 0;
    background: #f8f9fa;
}

.vervy-pretotyping__title {
    font-size: 3rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 4rem;
    text-align: left;
    font-family: 'Outfit', sans-serif;
}

/* Pretotyping Content */
.vervy-pretotyping-buddy {
    margin-bottom: 4rem;
}

.vervy-pretotyping-buddy__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vervy-pretotyping-buddy__content--vertical {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.vervy-pretotyping-buddy__title {
    font-size: 2rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
}

.vervy-pretotyping-buddy__text p {
    color: #424242;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.vervy-pretotyping-buddy__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vervy-pretotyping-buddy__image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.vervy-preconcept__layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two side-by-side items */
    gap: 2rem;
    align-items: start;
}

.vervy-preconcept__item {
    display: grid;
    grid-template-columns: auto 1fr; /* image left, text right */
    align-items: start;
    gap: 0.5rem; /* text closer to image */
}

.vervy-preconcept__image img {
    width: 80%;
    max-width: 420px;
    height: auto;
    display: block;
    border-radius: 12px;
}

.vervy-preconcept__text p {
    color: #424242;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vervy-title {
        font-size: 2.5rem;
        margin-top: 0;
        margin-bottom: var(--spacing-xl);
    }
    
    .vervy-info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vervy-info-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .vervy-summary__blobs {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vervy-problem__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vervy-research__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vervy-mockups__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .vervy-family__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vervy-creativity__layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vervy-creativity__grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }

    .vervy-preconcept__layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vervy-preconcept__item {
        grid-template-columns: 1fr; /* stack on small screens */
        gap: 0.5rem;
    }

    .vervy-preconcept-buddy__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vervy-preconcept-buddy__image {
        order: -1; /* image first on mobile */
    }

    .vervy-pretotyping-buddy__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vervy-pretotyping-buddy__image {
        order: -1; /* image first on mobile */
    }
}

@media (max-width: 480px) {
    .vervy-hero {
        padding: 2rem 0 4rem;
    }
    
    .vervy-title {
        font-size: 2rem;
    }
    
    .vervy-info-card {
        padding: 1.5rem;
    }
    
    .vervy-summary,
    .vervy-problem,
    .vervy-research,
    .vervy-mockups,
    .vervy-family {
        padding: 3rem 0;
    }
    
    .vervy-summary__title,
    .vervy-problem__title,
    .vervy-research__title,
    .vervy-mockups__title {
        font-size: 2rem;
    }
    
    .vervy-mockups__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Vervy Section */
.vervy-section {
    padding: 6rem 0;
    background: white;
}

.vervy-concept__title {
    font-size: 3rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 2rem;
    text-align: left;
    font-family: 'Outfit', sans-serif;
}

.vervy-concept__subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #424242;
    margin-top: 4rem;
    margin-bottom: 12pt;
    text-align: left;
    font-family: 'Outfit', sans-serif;
}

/* Images Gallery */
.vervy-images-gallery {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    width: 100%;
    padding: 0;
}

.vervy-images-gallery img {
    flex: 1;
    min-width: 300px;
    max-width: none;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.vervy-images-gallery img:hover {
    transform: scale(1.05);
}

/* Concept Description */
.vervy-concept-description {
    margin-top: 4rem;
    width: 100%;
}

.vervy-concept-description p {
    color: #424242;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Just Style Image */
.vervy-juststyle-image {
    margin-top: 4rem;
    width: 100%;
    padding: 0;
}

.vervy-juststyle-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* App section layout: image reduced on the left, text on the right */
.vervy-app__layout {
    display: grid;
    grid-template-columns: 480px 1fr; /* slightly larger image column */
    gap: 2rem;
    align-items: start; /* align image top with subtitle */
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 0;
}

.vervy-app__image img {
    width: 100%;
    height: auto;
    border-radius: 33pt;
    display: block;
}

/* align image with page margin (flush with container edge) */
.vervy-app__image img {
    /* push image further left to align precisely with subtitle above */
    margin-left: calc(-1 * var(--container-padding) - 4rem);
    max-width: calc(100% + var(--container-padding) + 4rem);
    border-radius: 33pt;
}

.vervy-app__text p {
    color: #424242;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Gallery under App: align with app image and display thumbnails */
.vervy-app__gallery {
    max-width: 1200px;
    margin: 1.5rem auto 0;
}

/* Gallery inline thumbnails: small and in a row */
.vervy-gallery__grid {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0 0 1rem 0;
    flex-wrap: nowrap; /* keep them in a single row */
    overflow-x: auto; /* allow horizontal scroll if necessary */
}

.vervy-gallery__grid img {
    width: 220px; /* increased thumbnails per request */
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    flex: 0 0 auto;
}

/* Align gallery left edge with the pushed app image / page margin */
.vervy-app__gallery {
    /* align gallery with the subtitle left margin inside the container */
    margin-left: 0;
    max-width: 100%;
    padding-left: 0;
}

@media (max-width: 992px) {
    .vervy-gallery__grid {
        flex-wrap: wrap; /* allow wrapping on smaller screens */
        gap: 0.75rem;
    }
    .vervy-gallery__grid img {
        width: 48%;
    }
    .vervy-app__gallery {
        margin-left: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .vervy-app__gallery {
        margin-left: 0;
        max-width: 100%;
        padding: 0 var(--container-padding);
    }
    .vervy-gallery__grid {
        gap: 0.5rem;
    }
    .vervy-gallery__grid img {
        width: 48%;
    }
}

@media (max-width: 992px) {
    .vervy-app__layout {
        grid-template-columns: 420px 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .vervy-app__layout {
        grid-template-columns: 1fr; /* stack on small screens */
    }
    .vervy-app__image {
        order: -1; /* image first on mobile */
    }
    .vervy-app__image img {
        margin-left: 0; /* reset on mobile */
        max-width: 100%;
    }
}

.vervy-figma {
    padding: var(--spacing-xl) 0 var(--spacing-3xl);
}

.vervy-figma__frame {
    width: min(100%, 65rem);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border: 0.0625rem solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-white);
}

.vervy-figma__iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

@media (max-width: 768px) {
    .vervy-figma__frame {
        border-radius: var(--radius-md);
    }
}

/* Conclusion section full-width background */
.vervy-conclusion {
    background: #A3E2FF;
    padding: 4rem 0;
}

/* (Removed custom conclusion spacing to use existing heading styles) */