/* Bento Grid Layout System */
.bento-grid {
    display: grid;
    gap: 2rem;
    padding: 1rem;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
}

/* Hero Grid Layout */
.hero-grid {
    grid-template-columns: 2fr 1fr;
    min-height: 85vh;
    margin: 0 auto;
    gap: 2rem;
}

.hero-main {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, rgba(26, 26, 46, 0.2) 100%);
    pointer-events: none;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.hero-feature h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Services Grid Layout */
.services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem auto;
}

.service-item {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
}

.service-header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-header h3 {
    font-size: 1.8rem;
}

.service-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list li {
    font-size: 1.1rem;
    padding: 1rem 0;
}

/* Enhanced Hover Effects */
.bento-item {
    position: relative;
    overflow: hidden;
}

.bento-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1600px) {
    .bento-grid {
        max-width: 1600px;
        padding: 1rem 2rem;
    }
}

@media (max-width: 1200px) {
    .hero-grid {
        min-height: 70vh;
    }
    
    .service-item {
        min-height: 500px;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.5fr 1fr;
        min-height: 500px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-main h1 {
        font-size: 3rem;
    }
    
    .hero-main h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-main,
    .hero-feature,
    .service-item {
        padding: 2rem;
    }
    
    .hero-main h1 {
        font-size: 2.5rem;
    }
    
    .hero-main h2 {
        font-size: 1.8rem;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Enhancements */
.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.1rem;
    padding: 1rem 0;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Shadows and Depth */
.bento-item {
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bento-item:hover {
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(227, 30, 36, 0.1);
}

/* Service Item Enhancements */
.service-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(227, 30, 36, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem auto;
    padding: 2rem 0;
}

.stat-item {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Projects Grid */
.projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem auto;
}

.project-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    padding: 0;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* Testimonials Grid */
.testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    position: relative;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.cta-card {
    text-align: center;
    padding: 3rem;
}

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

/* Footer Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Section Titles */
.bento-section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Section spacing */
.bento-section {
    padding: 4rem 2rem;
    width: 100%;
}

/* Update services grid layout */
.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 2rem;
    max-width: 2000px;
    margin: 0 auto;
}

/* Service category card styles */
.service-category {
    min-height: 700px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .services-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .service-category {
        min-height: 600px;
    }
}

@media (max-width: 1024px) {
    .services-detailed-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-category {
        min-height: auto;
    }

    .service-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-detailed-grid {
        padding: 1rem;
    }

    .service-images {
        grid-template-columns: 1fr;
    }

    .service-images img {
        height: 250px;
    }

    .service-category h2 {
        font-size: 1.8rem;
    }
}

/* Update existing bento item styles */
.bento-item {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

.bento-item:hover {
    border-color: rgba(227, 30, 36, 0.3);
    box-shadow: 0 8px 32px rgba(227, 30, 36, 0.15);
}

/* Service content layout */
.service-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Image gallery effects */
.service-images {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-images img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-images img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}