body {
    background: var(--darker);
}

.project-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-header {
    background: #000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-header .logo-desktop {
    width: 150px;
}

.back-to-projects {
    color: var(--light);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-projects:hover {
    color: var(--accent);
}

/* Main Project Content Area */
.project-content {
    padding: 4rem 0 6rem 0;
}

.project-title-section {
    text-align: center;
    margin-bottom: 3rem;
}

.project-subtitle {
    display: block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.project-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem); /* Adjusted title size */
    color: var(--light);
    line-height: 1.2;
}

.project-hero-image {
    margin-bottom: 4rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Key Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
    background: var(--dark);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card i {
    color: var(--accent);
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

/* THIS IS THE FIX: Made the font size responsive */
.stat-number {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Min, Preferred, Max size */
    font-weight: 700; /* Slightly less bold to help with spacing */
    color: var(--light);
    line-height: 1.2; /* Increased line-height */
    /*word-wrap: break-word;  Ensure long words can wrap if needed */
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* Project Details Layout */
.project-details {
    display: grid;
    grid-template-columns: 1fr; /* Changed to a single column */
    gap: 3rem; /* Adjusted gap for single column */
    align-items: start;
}

.project-details h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.project-details p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Responsive adjustments for project page */
@media (max-width: 768px) {
    .project-content {
        padding: 3rem 0; /* Reduced padding on mobile */
    }

    /* Ensure content has side padding on mobile */
    .project-content .container {
        padding: 0 1rem;
    }

    .project-header .logo-desktop {
        display: none;
    }
    .project-header .logo-mobile {
        display: block;
        height: 60px; /* Corrected logo height */
        width: auto;
    }

    .project-details {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-content h1 {
        font-size: 1.8rem; /* Adjusted mobile title size */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
        gap: 1rem; /* Tighter gap on mobile */
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.6rem; /* You can also set a specific smaller size for mobile */
    }

    .stat-label {
        font-size: 0.9rem;
    }
    
    .project-details p {
        font-size: 1rem; /* Slightly smaller text for readability */
    }
}
