


.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 2rem;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 15px;
}

.header p {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.5;
}


.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates the 2-column layout */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    /* padding: 20px; */
}

.card {
    position: relative;
    height: 250px;
    border-radius: 24px; /* Matches the smooth rounded corners */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Pushes content to the bottom */
}

/* Dark overlay gradient to ensure text readability */
.card-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 30px;
    width: 100%;
    color: #ffffff;
}

.card-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.card-content p {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.85;
    color: #d3d8e0;
}

/* Responsive: Stacks cards on mobile devices */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Transfrom */
.transformation-section {
   /* Deep dark blue background */
    color: white;
    padding: 80px 20px;
    font-family: 'Inter', sans-serif;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.content-header {
    margin-bottom: 50px;
}

.content-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.content-header p {
    color: #a0a0a0;
}

.flex-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.image-wrapper {
    flex: 1.5;
}

.image-wrapper img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.cards-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 20px;
}

.info-card h4 {
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 700;
}

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

.info-card ul li {
    font-size: 0.6rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    display: flex;
    align-items: center;
}

/* Custom Icons using Pseudo-elements */
.fail::before {
    content: '✖';
    position: absolute;
    left: 0;
    color: #ff4d4d;
    font-size: 0.8rem;
    border: 1px solid #ff4d4d;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-size: 0.8rem;
    border: 1px solid #2ecc71;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive view */
@media (max-width: 992px) {
    .flex-layout {
        flex-direction: column;
    }
    .content-header h2 {
        font-size: 2rem;
        padding: 0px 0.9rem;
    }
    .content-header p {
        padding: 0px 0.9rem;
    }
}

/* --- Gallery Variables --- */
:root {
    --primary-blue: #1a73e8;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --grid-gap: 16px;
    --transition-speed: 0.4s;
}

/* --- Main Section Layout --- */
.execution-gallery {
    padding: 80px 0;
    /* background-color: #ffffff; */
    background-image: url('../assets/images/b8.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.execution-gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Section --- */
.gallery-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 40px;
}

.blue-badge {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
}

.intro-text-right p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
    max-width: 540px;
    margin: 0;
}

/* --- Bento Grid Engine --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-auto-rows: 160px;  */
    gap: var(--grid-gap);
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Slightly smoother corners */
    background-color: #f5f5f5; /* Placeholder color */
    height: 250px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1);
}

.grid-item:hover img {
    transform: scale(1.08);
}

/* --- Span Classes (Mosaic Logic) --- */
.item-row-2 { grid-row: span 2; }
.item-row-3 { grid-row: span 3; }
.item-col-2 { grid-column: span 2; }

.animate-text1 {
    padding: 0.3em; color: #fff; max-width: 500px;background: rgba(0, 0, 0, 0.2);border-radius: 0.3em;
}

.btn-demo1{
    margin-top: 2rem;font-size: 0.6em;
}

/* --- Responsive Design --- */

@media (min-width:2060px){
    .header h1,.content-header h2 {
  font-size: 4rem;
    }
    .header p {
  font-size: 1.8rem;
    }
    .card-grid {
        max-width: fit-content;
    }
    .card-content h3 {
    font-size: 1.8rem;
    }
    .card {
      height: 30rem;
    }
    .card-content p,.content-header p {
    font-size: 1.5rem;
    }
    .animate-text{
        max-width: inherit;
        
    }
   .btn-demo1{
    margin-top: 2rem;
    font-size: 1.2em;
    }
    .container,.execution-gallery {
    max-width: inherit;
    }
    .content-header {
        text-align: center;
    }
    .info-card h4 {
        font-size: 2em;
    }
    .info-card ul li {
    font-size: 2em;
    }
    .gallery-intro {
        justify-content: space-around;
    }
    .intro-text-right p {
     font-size: 2em;
    }
    .execution-gallery .container {
     max-width: 2000px;
    }
    
}
@media (max-width: 1024px) {
    .main-title { font-size: 36px; }
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    .cards-column{
        flex-direction: row;
          margin:0px 2rem
    }
}

@media (max-width: 768px) {
    .gallery-intro {
        flex-direction: column;
        gap: 20px;
    }
    
    .intro-text-right p {
        max-width: 100%;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .info-card ul li {
       font-size: 15px;
    }

    .cards-column {
        display: flex;
        flex-direction: column;
        margin:0px 2rem
    }
}

@media (max-width: 480px) {
    .main-title { font-size: 28px; }
    .bento-grid {
        display: flex;
        flex-direction: column;
    }
    .grid-item {
        height: 200px;
    }
}
