/* =================================
   PROJECT PAGES STYLES
   Kyle Dallafior UI/UX Portfolio
   ================================= */

/* =================================
   PROJECT HERO SECTION
   ================================= */

.project-hero {
    padding: 80px 0 80px;
    background: var(--white);
    position: relative;
    overflow: visible;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.project-hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
    width: 100%;
}

.project-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    text-align: center;
    width: 100%;
    order: 2;
}

.project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.project-breadcrumb a {
    color: var(--accent-red);
    transition: color var(--transition-fast);
}

.project-breadcrumb a:hover {
    color: var(--accent-red);
}

.project-category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--white);
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    color: #FF0000;
}



.project-subtitle {
    font-size: 1.125rem;
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--medium-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--dark-gray);
    font-weight: 600;
    line-height: 1.3;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.project-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transform: none;
    transition: transform var(--transition-slow);
    align-self: start;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 250px;
    order: 1;
}

.project-hero-image:hover {
    transform: none;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform var(--transition-slow);
    object-fit: cover;
    object-position: center;
}

.project-hero-image:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-hero-image:hover .image-overlay {
    opacity: 1;
}

/* =================================
   PROJECT OVERVIEW
   ================================= */

.project-overview {
    padding: 80px 0;
    background: var(--white);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.overview-text h3 {
    color: var(--accent-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    transition: transform var(--transition-cubic);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-red);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--medium-gray);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* =================================
   DESIGN PROCESS
   ================================= */

.design-process {
    padding: 120px 0;
    background: var(--section-gray);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
            background: var(--accent-red);
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
    margin-top: 1rem;
}

.step-content h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--medium-gray);
    line-height: 1.6;
    text-align: left;
}

/* =================================
   TECHNICAL FEATURES
   ================================= */

.technical-features {
    padding: 6rem 0;
    background: var(--light-gray);
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.tech-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
    border-left: 4px solid var(--accent-red);
}

.tech-category h3 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 0.75rem 0;
    color: var(--medium-gray);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.tech-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.tech-list li:not(:last-child) {
    border-bottom: 1px solid var(--light-gray);
}

/* =================================
   API FINDINGS
   ================================= */

.api-findings {
    padding: 6rem 0;
    background: var(--light-gray);
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.finding-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
    border-top: 4px solid var(--accent-red);
}

.platform-logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.finding-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.finding-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.finding-status.working {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.finding-status.limited {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.finding-status.blocked {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.finding-details p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--medium-gray);
}

.finding-details strong {
    color: var(--dark-gray);
    font-weight: 600;
}

/* =================================
   KEY FEATURES
   ================================= */

.key-features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 20px;
    text-align: center;
    transition: all var(--transition-cubic);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* =================================
   VISUAL SHOWCASE
   ================================= */

.visual-showcase {
    padding: 80px 0;
    background: var(--white);
}

.showcase-section {
    margin-bottom: 4rem;
}

.showcase-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
    line-height: 1.2;
}

/* Vertical Scrolling Parallax Gallery */
.gallery {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.gallery-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0;
    will-change: transform;
}

.card {
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-subtle);
    transition: box-shadow var(--transition-slow);
}

.card:hover {
    box-shadow: var(--shadow-lifted);
}

.card-image-wrapper {
    height: 100%;
    will-change: transform;
    position: relative;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.card:hover .card-image-wrapper img {
    transform: scale(1.01);
}

/* Gallery card hover icon overlay */
.card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.6);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-slow);
    pointer-events: none;
    border: 2px solid var(--accent-red);
    backdrop-filter: blur(10px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM10 7v6M7 10h6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    z-index: 10;
}

.card:hover .card-image-wrapper::after {
    opacity: 1;
}

/* Card overlay for text content - hidden */
.card-overlay {
    display: none;
}

.card:hover .card-overlay {
    display: none;
}

.card-overlay h3 {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-gray);
    line-height: 1.2;
}

.card-overlay p {
    font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    color: var(--medium-gray);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Legacy showcase grid for compatibility */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Masonry variant */
.showcase-grid[data-masonry="true"] {
    grid-auto-rows: 8px;
    gap: 1rem;
}

.showcase-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-cubic);
    cursor: pointer;
}

/* Showcase item hover icon overlay */
.showcase-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.6);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-slow);
    pointer-events: none;
    border: 2px solid var(--accent-red);
    backdrop-filter: blur(10px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM10 7v6M7 10h6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    z-index: 10;
}

.showcase-item.large {
    grid-column: span 2;
}

.showcase-item:hover {
    transform: translateY(-5px);
}

.showcase-item:hover::after {
    opacity: 1;
}

.showcase-item img {
    width: 100%;
    display: block;
    height: 220px; /* uniform heights for tidy stacks by default */
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
    background: #eaeaea;
}
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-figure { max-width: 90vw; max-height: 85vh; margin: 0; position: relative; }
.lightbox-img { max-width: 100%; max-height: 85vh; border-radius: 12px; box-shadow: var(--shadow-strong); }
.lightbox-caption { color: rgba(255,255,255,0.85); text-align: center; margin-top: 0.75rem; font-size: 0.95rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.5rem;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Gallery Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    z-index: 1;
}

.lightbox-overlay .lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 1;
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    /* Removed transform to prevent vertical movement */
}

/* Override hover transforms for prev/next to maintain centering */
.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%); /* Maintain vertical centering */
}

/* Lightbox image hover effects */
.lightbox-image {
    transition: all var(--transition-slow);
    position: relative;
}

.lightbox-image:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lifted);
}

.lightbox-image:hover img {
    transform: scale(1.01);
}

.lightbox-image img {
    transition: transform var(--transition-slow);
}

/* Add a subtle overlay hint on hover */
.lightbox-image:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.6);
    color: var(--accent-red);
    font-size: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-slow);
    pointer-events: none;
    border: 2px solid var(--accent-red);
    backdrop-filter: blur(10px);
}

.lightbox-image:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM10 7v6M7 10h6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    content: '';
}

.lightbox-image:hover:after {
    opacity: 1;
}

@media (max-width: 640px) {
    .showcase-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
    .showcase-item img { height: 160px; }
    
    /* Gallery responsive */
    .gallery-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .gallery-track {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .card {
        height: 300px;
    }
    
    .card-overlay {
        display: none;
    }
    
    .card:hover .card-overlay {
        display: none;
    }
    
    .card-overlay h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .card-overlay p {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
    
    /* Lightbox mobile adjustments */
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .lightbox-prev {
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .lightbox-next {
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Maintain vertical centering on mobile hover */
    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: translateY(-50%);
    }
    
    .lightbox-overlay .lightbox-image {
        max-height: 75vh;
    }
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        transparent,
        rgba(36, 33, 33, 0.9)
    );
    color: var(--white);
    padding: 2rem;
    transform: translateY(50%);
    transition: transform var(--transition-cubic);
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
}

.showcase-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.showcase-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* =================================
   DESIGN SYSTEM
   ================================= */

.design-system {
    padding: 80px 0;
    background: var(--white);
}

.system-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.system-section h3 {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.color-swatch {
    text-align: center;
}

.color-swatch .swatch {
    width: 100%;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-subtle);
}

.color-swatch.primary .swatch { background: #2563EB; }
.color-swatch.secondary .swatch { background: #F97316; }
.color-swatch.neutral .swatch { background: #6B7280; }
.color-swatch.success .swatch { background: #10B981; }

.color-swatch span {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.color-swatch code {
    font-size: 0.875rem;
    color: var(--medium-gray);
    background: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.typography-showcase {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 20px;
}

.type-sample h1,
.type-sample h2,
.type-sample h3 {
    margin-bottom: 1rem;
}

.component-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.component-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.component-item span {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.input-field {
    position: relative;
}

.input-field input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.input-field input:focus {
    outline: none;
    border-color: var(--accent-red);
}

/* =================================
   RESULTS & IMPACT
   ================================= */

.results-impact {
    padding: 80px 0;
    background: var(--section-gray);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.result-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-cubic);
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-metric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-red);
}

.metric-change {
    font-size: 1.5rem;
    font-weight: 700;
}

.metric-change.positive {
    color: #10B981;
}

.metric-change.negative {
    color: #EF4444;
}

.result-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.result-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* =================================
   DESIGN EVOLUTION
   ================================= */

.design-evolution {
    padding: 80px 0;
    background: var(--section-gray);
}

.evolution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.evolution-stage {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-cubic);
}

.evolution-stage:hover {
    transform: translateY(-5px);
}

.stage-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.stage-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.stage-header h3 {
    margin: 0;
    color: var(--dark-gray);
}

.stage-image {
    position: relative;
    overflow: hidden;
}

.stage-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.evolution-stage:hover .stage-image img {
    transform: scale(1.02);
}

.stage-description {
    padding: 2rem;
}

.stage-description p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.stage-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.stage-description li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.stage-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

/* =================================
   DESIGN SYSTEM COMPONENTS
   ================================= */

.design-system-components {
    padding: 80px 0;
    background: var(--white);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.component-category {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform var(--transition-cubic);
    border: 2px solid transparent;
}

.component-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.component-category h3 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-items .item {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    color: var(--dark-gray);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.category-items .item:hover {
    background: var(--accent-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* =================================
   DESIGN PRINCIPLES
   ================================= */

.design-principles {
    padding: 80px 0;
    background: var(--section-gray);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.principle-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-cubic);
    border: 2px solid transparent;
}

.principle-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-strong);
}

.principle-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.principle-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.principle-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* =================================
   IMPLEMENTATION PROCESS
   ================================= */

.implementation-process {
    padding: 80px 0;
    background: var(--white);
}

.process-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    min-width: 250px;
    transition: transform var(--transition-cubic);
    border: 2px solid transparent;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.process-step h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--medium-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.process-arrow {
    font-size: 2rem;
    color: var(--accent-red);
    font-weight: bold;
    transform: rotate(90deg);
}

/* =================================
   TECHNICAL SPECIFICATIONS
   ================================= */

.technical-specs {
    padding: 80px 0;
    background: var(--section-gray);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spec-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
}

.spec-category h3 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-red);
}

.spec-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-name {
    font-weight: 500;
    color: var(--medium-gray);
}

.spec-value {
    font-weight: 600;
    color: var(--dark-gray);
    text-align: right;
}

/* =================================
   DOWNLOAD SECTION
   ================================= */

.download-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.download-thumbnail {
    transition: transform var(--transition-slow);
}

.download-thumbnail a {
    display: block;
    text-decoration: none;
}

.download-thumbnail:hover {
    transform: translateY(-10px);
}

.download-thumbnail img {
    transition: transform var(--transition-slow);
}

.download-thumbnail:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .download-section {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
        padding: 1.5rem !important;
    }
    
    .download-thumbnail {
        order: 1;
    }
    
    .download-content {
        order: 2;
    }
    
    .download-content h3,
    .download-content p {
        text-align: center !important;
    }
    
    .download-content .feature-icon {
        text-align: center !important;
    }
    
    .download-thumbnail img {
        max-width: 250px !important;
    }
}

@media (max-width: 480px) {
    .download-section {
        gap: 1rem !important;
    }
    
    .download-thumbnail img {
        max-width: 200px !important;
    }
}

/* =================================
   RESPONSIVE SHOWCASE
   ================================= */

.responsive-showcase {
    padding: 80px 0;
    background: var(--section-gray);
}

.responsive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.responsive-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.responsive-item.desktop .device-frame {
    background: var(--dark-gray);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
}

.responsive-item.mobile .device-frame {
    background: var(--dark-gray);
    padding: 1rem;
    border-radius: 25px;
    box-shadow: var(--shadow-strong);
    max-width: 300px;
    margin: 0 auto;
}

.device-frame img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.device-info h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.device-info p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.device-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.device-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--medium-gray);
}

.device-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

/* =================================
   USER FLOW
   ================================= */

.user-flow {
    padding: 80px 0;
    background: var(--white);
}

.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.flow-step {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    min-width: 200px;
    transition: transform var(--transition-cubic);
    border: 2px solid transparent;
}

.flow-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.flow-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.flow-step h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.flow-step p {
    color: var(--medium-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--accent-red);
    font-weight: bold;
    transform: rotate(90deg);
}

/* =================================
   AUDIO COMPONENTS
   ================================= */

.audio-control {
    background: var(--dark-gray);
    padding: 1rem;
    border-radius: 8px;
    width: 120px;
}

.waveform-mini {
    height: 30px;
    background: var(--accent-red);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.waveform-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 4px
    );
}

/* =================================
   BEFORE & AFTER COMPARISON
   ================================= */

/* =================================
   AGENT PORTAL TRANSFORMATION
   ================================= */

.before-after {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--section-gray) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.before-after::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.transformation-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.transformation-overview {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.transformation-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #ff4444, var(--accent-red));
}

.transformation-overview h3 {
    color: var(--dark-gray);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
}

.transformation-overview h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}

.transformation-overview p {
    color: var(--medium-gray);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
}

.transformation-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.highlight-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-cubic);
    position: relative;
}

.highlight-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(255, 0, 0, 0.15);
}

.highlight-section h4 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-section h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.highlight-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-section li {
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.highlight-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateX(0);
    transition: transform var(--transition-fast);
}

.highlight-section:hover li::before {
    transform: translateX(4px);
}

.highlight-section li:last-child {
    margin-bottom: 0;
}

/* Desktop layout for transformation section */
@media (min-width: 768px) {
    .transformation-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
    
    .transformation-overview {
        grid-column: span 2;
    }
    
    .transformation-highlights {
        grid-template-columns: 1fr 1fr;
        grid-column: span 2;
        gap: 3rem;
    }
}

/* Large desktop enhancements */
@media (min-width: 1200px) {
    .before-after {
        padding: 140px 0;
    }
    
    .transformation-overview {
        padding: 4rem;
    }
    
    .transformation-overview h3 {
        font-size: 2.25rem;
    }
    
    .transformation-overview p {
        font-size: 1.25rem;
    }
    
    .highlight-section {
        padding: 3rem;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .before-after {
        padding: 80px 0;
    }
    
    .transformation-content {
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .transformation-overview {
        padding: 2rem;
    }
    
    .transformation-overview h3 {
        font-size: 1.75rem;
    }
    
    .transformation-overview p {
        font-size: 1rem;
    }
    
    .highlight-section {
        padding: 1.5rem;
    }
    
    .highlight-section h4 {
        font-size: 1.25rem;
    }
    
    .highlight-section li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }
}

/* =================================
   CLIENT PARTNERSHIP IMPACT
   ================================= */

.client-collaboration {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--section-gray) 100%);
    position: relative;
    overflow: hidden;
}

.client-collaboration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 0, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.collaboration-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.collaboration-text {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.collaboration-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #ff4444, var(--accent-red));
}

.collaboration-text h3 {
    color: var(--dark-gray);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
}

.collaboration-text h3:first-of-type::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}

.collaboration-text p {
    color: var(--medium-gray);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.collaboration-text ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.collaboration-text li {
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.collaboration-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.1rem;
}

.collaboration-text li:last-child {
    margin-bottom: 0;
}

.collaboration-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-highlight {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-cubic);
    position: relative;
    overflow: hidden;
}

.stat-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transition: transform var(--transition-cubic);
}

.stat-highlight:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(255, 0, 0, 0.15);
}

.stat-highlight:hover::before {
    transform: scaleX(1);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--dark-gray);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop layout for client collaboration */
@media (min-width: 768px) {
    .collaboration-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
        align-items: start;
    }
    
    .collaboration-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Large desktop enhancements */
@media (min-width: 1200px) {
    .client-collaboration {
        padding: 140px 0;
    }
    
    .collaboration-text {
        padding: 4rem;
    }
    
    .collaboration-text h3 {
        font-size: 2rem;
    }
    
    .collaboration-text p {
        font-size: 1.25rem;
    }
    
    .stat-highlight {
        padding: 3rem 2.5rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .client-collaboration {
        padding: 80px 0;
    }
    
    .collaboration-grid {
        gap: 2.5rem;
        margin-top: 2rem;
    }
    
    .collaboration-text {
        padding: 2rem;
    }
    
    .collaboration-text h3 {
        font-size: 1.5rem;
    }
    
    .collaboration-text p {
        font-size: 1rem;
    }
    
    .collaboration-text li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }
    
    .stat-highlight {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comparison-label {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin: 0;
}

.comparison-label.before {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.comparison-label.after {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.comparison-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    aspect-ratio: 16/10;
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.comparison-image:hover img {
    transform: scale(1.02);
}

.comparison-points {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
}

.comparison-points ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comparison-points li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(169, 163, 161, 0.2);
    position: relative;
    padding-left: 2rem;
}

.comparison-points li:last-child {
    border-bottom: none;
}

.comparison-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.before .comparison-points li::before {
    background: #DC2626;
}

.after .comparison-points li::before {
    background: #059669;
}

/* =================================
   NEWS PLATFORM PREVIEW
   ================================= */

.news-platform-preview {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    min-height: 400px;
}

.platform-header {
    background: var(--dark-gray);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.platform-nav {
    display: flex;
    gap: 2rem;
}

.platform-nav span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.platform-nav span:hover {
    color: var(--accent-red);
}

.platform-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.main-article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    border-radius: 8px;
}

.main-article h3 {
    color: var(--dark-gray);
    margin: 0;
    font-size: 1.5rem;
}

.main-article p {
    color: var(--medium-gray);
    margin: 0;
    line-height: 1.6;
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.small-article {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.small-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    border-radius: 4px;
    flex-shrink: 0;
}

.article-title {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.875rem;
}

/* =================================
   AI FEATURES
   ================================= */

.ai-features {
    padding: 80px 0;
    background: var(--section-gray);
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.ai-feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-cubic);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.ai-feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-strong);
}

.feature-visual {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ai-icon {
    font-size: 3rem;
    z-index: 2;
    position: relative;
}

.feature-animation,
.personalization-viz,
.sentiment-chart,
.fact-check-viz,
.summary-viz,
.translation-viz {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Pulse animation */
.pulse-ring {
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 3s infinite;
}

.pulse-ring.delay-1 { animation-delay: 1s; }
.pulse-ring.delay-2 { animation-delay: 2s; }

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Personalization visualization */
.user-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-red);
    position: relative;
}

.content-streams {
    position: absolute;
    top: -20px;
    left: 60px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stream {
    width: 50px;
    height: 4px;
    background: var(--medium-gray);
    border-radius: 2px;
    animation: streamFlow 2s ease-in-out infinite;
}

.stream:nth-child(2) { animation-delay: 0.5s; }
.stream:nth-child(3) { animation-delay: 1s; }

@keyframes streamFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; background: var(--accent-red); }
}

/* Sentiment chart */
.sentiment-chart {
    display: flex;
    gap: 5px;
    align-items: end;
}

.chart-bar {
    width: 12px;
    border-radius: 2px;
    animation: chartGrow 2s ease-in-out infinite;
}

.chart-bar.positive {
    height: 40px;
    background: #10B981;
}

.chart-bar.neutral {
    height: 25px;
    background: var(--medium-gray);
    animation-delay: 0.5s;
}

.chart-bar.negative {
    height: 15px;
    background: #EF4444;
    animation-delay: 1s;
}

@keyframes chartGrow {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* =================================
   UX FLOW
   ================================= */

.ux-flow {
    padding: 80px 0;
    background: var(--white);
}

.flow-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.flow-step-ux {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    min-width: 280px;
    transition: transform var(--transition-cubic);
    border: 2px solid transparent;
}

.flow-step-ux:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.step-visual {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.user-icon,
.processing-icon,
.curation-icon,
.delivery-icon {
    font-size: 2.5rem;
    z-index: 2;
}

.flow-arrow-ux {
    display: flex;
    align-items: center;
    color: var(--accent-red);
}

.arrow-line {
    width: 2px;
    height: 40px;
    background: var(--accent-red);
}

.arrow-head {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--accent-red);
}

/* =================================
   TECH STACK
   ================================= */

.tech-stack {
    padding: 80px 0;
    background: var(--section-gray);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
}

.tech-category h3 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-red);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.tech-item:hover {
    background: var(--section-gray);
    transform: translateX(5px);
}

.tech-name {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.tech-desc {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* =================================
   PLACEHOLDER PREVIEWS
   ================================= */

.placeholder-preview {
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.7;
}

.placeholder-text {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 1.25rem;
}

.projects-grid-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 20px;
    min-height: 200px;
}

.mini-project {
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent-red);
    font-size: 0.875rem;
}

/* =================================
   NEXT PROJECT
   ================================= */

.next-project {
    padding: 80px 0;
    background: var(--dark-gray);
    color: var(--white);
}

.next-project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.next-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent; /* transparent instead of white */
    color: var(--accent-red);
    border: none; /* remove outline */
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    /* Align left edge with project title text */
    padding-left: 0;
    -webkit-padding-start: 0;
    padding-inline-start: 0;
}

.next-project-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.next-project-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.next-project-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.next-project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}
.next-project-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.next-project-actions .btn {
    width: 100%;
    min-width: 0; /* override global min-width to prevent stacking */
    text-align: center;
    white-space: nowrap; /* prevent multi-line wrapping */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.85rem, 1.6vw, 1rem); /* scale down to keep one line */
    padding: clamp(0.6rem, 1.8vw, 1rem) clamp(1rem, 2.4vw, 2rem); /* responsive padding */
    height: 56px; /* fixed, consistent height */
    line-height: 1; /* avoid vertical expansion */
}

/* Style the Previous button (first in the pair) as transparent with red outline */
.next-project-actions a:first-child.btn.btn-secondary {
    background: transparent !important;
    color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
}

.next-project-actions a:first-child.btn.btn-secondary:hover {
    background: rgba(255, 0, 0, 0.12) !important;
}

/* Desktop placement: under paragraph */
.next-project-actions--desktop {
    display: none;
}

/* Mobile placement: under image */
.next-project-actions--mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Enhanced mobile responsiveness for smaller screens */
@media (max-width: 480px) {
    .next-project-actions {
        gap: 0.5rem;
    }
    
    .next-project-actions .btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        height: 48px;
        min-width: 0;
    }
    
    .next-project-actions--mobile {
        gap: 0.5rem;
    }
}

@media (max-width: 380px) {
    .next-project-actions .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
        height: 44px;
    }
    
    .next-project-actions--mobile {
        gap: 0.375rem;
    }
}

@media (max-width: 320px) {
    .next-project-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .next-project-actions .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        height: 48px;
        width: 100%;
    }
    
    .next-project-actions--mobile {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .next-project-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .next-project-text {
        order: 1;
    }

    .next-project-image {
        order: 2;
    }

    .next-project-actions--desktop {
        display: flex;
        margin-top: 1.5rem;
    }

    .next-project-actions--mobile {
        display: none;
    }
}

.next-project-image:hover img {
    transform: scale(1.05);
}

/* =================================
   EXPERIENCE DEMO
   ================================= */

.experience-demo {
    padding: 120px 0;
    background: var(--white);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    background: #000;
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.demo-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.demo-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.demo-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    border-left: 4px solid var(--accent-red);
}

.feature-highlight i {
    font-size: 1.5rem;
    color: var(--accent-red);
}

.feature-highlight span {
    font-weight: 600;
    color: var(--dark-gray);
}

.demo-notes {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent-red);
}

.demo-notes h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.demo-notes ul {
    list-style: none;
    padding: 0;
}

.demo-notes li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

.demo-notes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

/* Desktop layout for demo */
@media (min-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
    
    .demo-info {
        order: 1;
    }
    
    .video-wrapper {
        order: 2;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .experience-demo {
        padding: 80px 0;
    }
    
    .demo-features {
        grid-template-columns: 1fr;
    }
    
    .demo-info h3 {
        font-size: 1.75rem;
    }
    
    .demo-info p {
        font-size: 1rem;
    }
}

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

/* Mobile: Stack normally with contained image */
@media (max-width: 767px) {
    .project-hero-image {
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 250px;
        border-radius: 20px;
        order: 1;
    }
    
    .project-hero-text {
        order: 2;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: none;
    }
    
    .process-step:nth-child(even) {
        flex-direction: column;
        text-align: left;
    }
    
    .step-number {
        align-self: center;
        margin-bottom: 0;
    }
    
    .step-content {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .process-step:nth-child(odd) .step-content,
    .process-step:nth-child(even) .step-content {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Desktop: Full-width hero image above text */
@media (min-width: 768px) {
    .project-hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        align-items: start;
    }
    
    .project-hero-text {
        text-align: left;
        order: 2;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .project-hero-image {
        order: 1;
        border-radius: 0;
        margin: 0 calc(-50vw + 50%) 0 calc(-50vw + 50%);
        width: 100vw;
        max-width: 100vw;
        height: 60vh;
        min-height: 400px;
    }
    
    .project-meta {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem 2rem;
    }
    
    .platform-content {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    
    .flow-visualization {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .flow-arrow-ux {
        transform: rotate(0deg);
    }
    
    .overview-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .process-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .process-step {
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }
    
    .process-step:nth-child(even) {
        flex-direction: row-reverse;
        text-align: right;
    }
    
    .step-number {
        position: relative;
        left: auto;
        transform: none;
        margin-top: 0;
    }
    
    .process-step:nth-child(odd) .step-content {
        margin-right: 0;
        margin-left: 0;
    }
    
    .process-step:nth-child(even) .step-content {
        margin-left: 0;
        margin-right: 0;
    }
    
    .showcase-item.large {
        grid-column: span 2;
    }
    
    .showcase-item.large img {
        height: 400px;
    }
    
    .system-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .next-project-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .responsive-item {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .responsive-item.mobile {
        grid-template-columns: 1fr 2fr;
    }
    
    .flow-diagram {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .flow-arrow {
        transform: rotate(0deg);
    }
    
    .evolution-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .evolution-stage {
        grid-column: span 1;
    }
    
    .process-flow {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .process-arrow {
        transform: rotate(0deg);
    }
    
    .platform-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .flow-visualization {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .flow-arrow-ux {
        transform: rotate(90deg);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .showcase-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .showcase-item.large img {
        height: 100%;
    }
    
    /* Gallery desktop */
    .gallery-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =================================
   ACCESSIBILITY
   ================================= */

@media (prefers-reduced-motion: reduce) {
    .project-hero-image,
    .showcase-item,
    .feature-card,
    .result-card,
    .stat-card {
        transition: none !important;
    }
    
    .project-hero-image:hover,
    .showcase-item:hover,
    .feature-card:hover,
    .result-card:hover,
    .stat-card:hover {
        transform: none !important;
    }
}

/* Focus styles */
.showcase-item:focus,
.feature-card:focus,
.result-card:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* =================================
   RESEARCH ARTICLE STYLES
   ================================= */

.research-article {
    padding: 80px 0;
    background: var(--white);
}

.article-preview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.article-cover {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transition: transform 0.3s ease;
}

.article-cover a {
    display: block;
    text-decoration: none;
}

.article-cover:hover {
    transform: translateY(-10px);
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.article-details h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-description {
    font-size: 1.125rem;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.article-highlights {
    margin-bottom: 2rem;
}

.article-highlights h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.article-highlights ul {
    list-style: none;
    padding: 0;
}

.article-highlights li {
    padding: 0.5rem 0;
    color: var(--medium-gray);
    position: relative;
    padding-left: 1.5rem;
}

.article-highlights li::before {
    content: "•";
    color: var(--accent-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.article-actions {
    display: flex;
    gap: 1rem;
}

.article-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.article-download:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    color: var(--white);
}

/* =================================
   RESEARCH IMPACT STYLES
   ================================= */

.research-impact {
    padding: 80px 0;
    background: var(--section-gray);
}

.impact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.impact-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.impact-text p {
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.impact-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.impact-text li {
    padding: 0.75rem 0;
    color: var(--medium-gray);
    position: relative;
    padding-left: 2rem;
}

.impact-text li::before {
    content: "✓";
    color: var(--accent-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.impact-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-highlight {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease;
}

.stat-highlight:hover {
    transform: translateY(-5px);
}

.stat-highlight .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.stat-highlight .stat-label {
    color: var(--medium-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* =================================
   RESPONSIVE RESEARCH STYLES
   ================================= */

@media (max-width: 768px) {
    .article-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-details h3 {
        font-size: 1.5rem;
    }
    
    .article-actions {
        justify-content: center;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .impact-stats {
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
    }
    
    .stat-highlight {
        min-width: 150px;
        flex-shrink: 0;
    }
    
    .stat-highlight .stat-number {
        font-size: 2rem;
    }
}