/* Project Pages CSS - Complete styles */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #059669;
    --accent: #0891b2;
    --text: #0f172a;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --gradient-accent: linear-gradient(135deg, #059669 0%, #0891b2 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Hide scrollbar */
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

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

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    background: transparent;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 60%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Content Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Problem Section */
.problem {
    background: var(--bg-secondary);
}

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

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary);
}

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

.problem-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.problem-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.problem-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Solution Section */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.solution-content {
    padding: 2rem 0;
}

.solution-features {
    list-style: none;
    margin: 2rem 0;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.solution-features li:hover {
    background: var(--primary);
    color: white;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.solution-image {
    position: relative;
}

.solution-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Process Section */
.process {
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

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

.step-content {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.step-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

.step-description + .step-description {
    margin-top: 1rem;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.result-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

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

.result-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.result-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    background: var(--bg-secondary);
}

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

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(8, 145, 178, 0.8));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.gallery-overlay .expand-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    padding: 0 2rem;
}

.lightbox-caption h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.5;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    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 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dark Mode Styles */
body.dark-mode {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --accent: #06b6d4;
    --text: #f5f5f5;
    --text-light: #94a3b8;
    --bg: #1e1e1e;
    --bg-secondary: #252525;
    --border: #333;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 35px 60px -12px rgba(0, 0, 0, 0.6);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1e1e1e 0%, #333 100%);
}

body.dark-mode .hero::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

body.dark-mode .hero h1 {
    color: #f0f0f0;
}

body.dark-mode .hero p {
    color: #ddd;
}

body.dark-mode .hero-stats {
    background: transparent;
}

body.dark-mode .stat-number {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .cta {
    background: linear-gradient(135deg, #1e1e1e 0%, #333 100%);
}

body.dark-mode .problem,
body.dark-mode .process,
body.dark-mode .gallery {
    background: #252525;
}

body.dark-mode .problem-card,
body.dark-mode .process-step,
body.dark-mode .result-card,
body.dark-mode .outcome-item,
body.dark-mode .meta-card,
body.dark-mode .overview-text {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .problem-card h3,
body.dark-mode .process-step h3,
body.dark-mode .result-card h3,
body.dark-mode .outcome-item h4,
body.dark-mode .meta-card h3,
body.dark-mode .overview-text h3 {
    color: #f0f0f0;
}

body.dark-mode .problem-card p,
body.dark-mode .process-step p,
body.dark-mode .result-card p,
body.dark-mode .outcome-item p,
body.dark-mode .meta-card p,
body.dark-mode .overview-text p {
    color: #ddd;
}

body.dark-mode .process-number {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
}

body.dark-mode .lightbox {
    background: rgba(0, 0, 0, 0.98);
}

body.dark-mode .lightbox-close,
body.dark-mode .lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .lightbox-close:hover,
body.dark-mode .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .lightbox-caption h4 {
    color: #f0f0f0;
}

body.dark-mode .lightbox-caption p {
    color: #ddd;
}

body.dark-mode .gallery-item {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .gallery-overlay {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .gallery-overlay h4 {
    color: #f0f0f0;
}

body.dark-mode .gallery-overlay p {
    color: #ddd;
}

body.dark-mode .expand-icon {
    color: #f0f0f0;
}

body.dark-mode .btn {
    color: #f5f5f5;
}

body.dark-mode .btn-primary {
    background: var(--gradient);
    color: white;
}

body.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    /* Fix hero-visual image proportions on small desktop */
    .hero-visual {
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-image {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: cover;
        object-position: center;
        transform: perspective(1000px) rotateY(-3deg) rotateX(3deg); /* Slightly reduced 3D effect */
        border-radius: 18px; /* Slightly smaller border radius */
    }
    
    .hero-image:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .problem-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .meta-card {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .meta-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .meta-content h3 {
        font-size: 0.75rem;
    }
    
    .meta-content p {
        font-size: 0.875rem;
    }
    
    .project-meta-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-caption {
        padding: 0 1rem;
    }
    
    .lightbox-caption h4 {
        font-size: 1.25rem;
    }
    
    .lightbox-caption p {
        font-size: 0.875rem;
    }
    
    /* Fix hero-visual image proportions on tablet */
    .hero-visual {
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-image {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        object-position: center;
        transform: perspective(1000px) rotateY(-2deg) rotateX(2deg); /* Reduced 3D effect */
        border-radius: 16px; /* Slightly smaller border radius */
    }
    
    .hero-image:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
}

@media (max-width: 480px) {
    .project-meta-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    
    .meta-card {
        padding: 1rem 1.25rem;
        grid-template-columns: 40px 1fr;
        gap: 0.75rem;
    }
    
    .meta-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .meta-content h3 {
        font-size: 0.7rem;
    }
    
    .meta-content p {
        font-size: 0.8rem;
    }
    
    /* Fix hero-visual image proportions on mobile */
    .hero-visual {
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        object-position: center;
        transform: none; /* Remove 3D transform on mobile */
        border-radius: 12px; /* Smaller border radius on mobile */
    }
    
    .hero-image:hover {
        transform: none; /* Remove hover transform on mobile */
    }
    
    /* Add margin-bottom to hero-container on mobile */
    .hero-container {
        margin-bottom: 3rem;
    }

    .problem-card,
    .gallery-overlay {
        padding: 1.25rem;
    }

    .gallery-item img {
        height: 220px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Project Meta Section */
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.meta-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.meta-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-content p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

/* Overview Section */
.overview-content {
    max-width: 800px;
    margin: 0 auto;
}

.overview-text {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.overview-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.overview-text p:last-child {
    margin-bottom: 0;
}

/* Outcomes Detailed */
.outcomes-detailed {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.outcome-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.outcome-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.outcome-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive overrides for late-declared meta/overview blocks */
@media (max-width: 768px) {
    .meta-card {
        padding: 1.25rem 1.5rem;
        grid-template-columns: 50px 1fr;
        gap: 1rem;
    }

    .meta-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .meta-content h3 {
        font-size: 0.75rem;
    }

    .meta-content p {
        font-size: 0.875rem;
    }

    .overview-text {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .meta-card {
        padding: 1rem 1.25rem;
        grid-template-columns: 40px 1fr;
        gap: 0.75rem;
    }

    .meta-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .meta-content h3 {
        font-size: 0.7rem;
    }

    .meta-content p {
        font-size: 0.8rem;
    }

    .overview-text {
        padding: 1.5rem 1rem;
    }
}

/* Agendo-specific mobile refinements */
@media (max-width: 768px) {
    body.project-agendo .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1rem;
        align-items: start;
    }

    body.project-agendo .hero-stats .stat:nth-child(3) {
        grid-column: 1 / -1;
    }

    body.project-agendo .hero-stats .stat {
        min-width: 0;
    }

    body.project-agendo .hero-stats .stat-number {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.1;
        white-space: nowrap;
    }

    body.project-agendo .hero-stats .stat-label {
        font-size: 0.94rem;
        line-height: 1.35;
        white-space: normal;
        word-break: break-word;
    }

    body.project-agendo .floating-elements {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        margin-top: 0.85rem;
        pointer-events: auto;
    }

    body.project-agendo .floating-elements .floating-element {
        position: static;
        animation: none;
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    body.project-agendo .floating-elements .floating-element:nth-child(3) {
        grid-column: 1 / -1;
    }

    body.project-agendo .floating-elements .floating-element i {
        font-size: 0.9rem;
    }

    body.project-agendo .floating-elements .floating-element small {
        font-size: 0.8rem;
        line-height: 1.2;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    body.project-agendo .hero-stats {
        grid-template-columns: 1fr;
    }

    body.project-agendo .hero-stats .stat:nth-child(3) {
        grid-column: auto;
    }

    body.project-agendo .floating-elements {
        grid-template-columns: 1fr;
    }

    body.project-agendo .floating-elements .floating-element:nth-child(3) {
        grid-column: auto;
    }
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}
