@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-size: 16px;
    height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

#main {
    height: 100%;
    width: 100%;
}

#hero {
    min-height: 100vh;
    width: 100%;
    padding: 4.4rem 3.75rem 3.75rem 3.75rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

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

#hero-img {
    flex: 1;
    width: 100%;
    background-image: url('https://images.pexels.com/photos/3184360/pexels-photo-3184360.jpeg');
    background-size: cover;
    background-position: 0 30%;
    background-repeat: no-repeat;
}

#hero > #hero-text-container > h1 {
    font-size: 6rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.2rem;
    margin-top: 3.75rem;
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero >  #hero-text-container > h1 > span {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
}

#hero >  #hero-text-container > button {
    border: 1px solid #000000;
    border-radius: 50rem;
    background-color: transparent;
    color: black;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    margin-top: 3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

#hero >  #hero-text-container > button:hover {
    color: white;
    background-color: #000000;
}

#hero > #hero-text-container > button > i {
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

@media (max-width: 430px) {
    #hero {
        height: 40vh;
        margin-top: 2.2rem;
        padding: 1.8rem 1.8rem 4rem 1.8rem;
    }
    #hero > #hero-text-container > h1 {
        margin-top: 1.5rem;
        font-size: 3rem;
    }
    #hero > #hero-text-container > h1 > span {
        font-size: 3rem;
    }
    #hero > #hero-text-container > button {
        margin-top: 1.5rem;
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }
    #hero > #hero-text-container > button > i {
        font-size: 1rem;
    }

}

#about {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 9.375rem;
    background-color: #ffffff;
    z-index: 10;
    position: relative;
}

#about > #about-us-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#about > #about-us-text-content > h5 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #000;
    border: 1px solid #a1a1a1;
    padding: 0.75rem 2rem;
    border-radius: 50rem;
}

#about > #about-us-text-content > h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.15rem;
    margin-top: 2.5rem;
    color: #cecece;
    overflow: hidden;
}

.animate-words {
    display: inline-block;
    white-space: pre-wrap;
}

.animate-words {
    display: inline-block;
    white-space: pre-wrap;
    opacity: 1;
}

.animate-words span {
    display: inline-block;
    white-space: nowrap;
    color: #cecece;
    opacity: 0.5;
    will-change: opacity, color;
}

.animate-words.animate-in span {
    animation: fadeInWord 0.8s ease-out forwards;
    animation-delay: calc(0.07s * var(--word-index));
}

@keyframes fadeInWord {
    from {
        opacity: 0.5;
        color: #cecece;
    }
    to {
        opacity: 1;
        color: #000000;
    }
}

@media (max-width: 430px) {
    #about {
        display: none;
        justify-content: flex-start;
        margin-top: 5rem;
        padding: 0 1.8rem;
    }

    #about > #about-us-text-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        height: 100%;
    }
    
    #about > #about-us-text-content > h5 {
        font-size: 1.5rem;
        font-weight: 500;
        letter-spacing: -0.09rem;
        color: #000;
        border: 1px solid #a1a1a1;
        padding: 0.75rem 2rem;
        border-radius: 50rem;
    }
    
    #about > #about-us-text-content > h2 {
        text-align: left;
        font-size: 1.4rem;
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: -0.1rem;
        margin-top: 2.5rem;
        color: #cecece;
        overflow: hidden;
    }
    
}

.grid {
    display: grid;
    grid-template-columns: 1fr 5fr 8fr 1fr;
    grid-template-rows: 80vh 10vh 60vh 10vh 75vh 10vh;
    border: 1px solid rgba(189, 189, 189, 0.34);
}

.cell {
    border: 1px solid rgba(189, 189, 189, 0.34);
    box-sizing: border-box;
}

#our-story-text {
    padding: 3.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

#our-story-text > h4 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #a1a1a1;
}

#our-story-text > #heading > h2 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2rem;
    color: #000000;
}

#our-story-text > #heading > p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-top: 1.8rem;
}

#our-story-video {
    padding: 3.75rem;
}

#our-story-video > video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.178);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    will-change: transform, box-shadow;
}

#our-story-video:hover > video {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

#our-vision-image {
    padding: 3.75rem;
}

#our-vision-image {
    overflow: hidden;
}

#our-vision-image > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.178);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    will-change: transform, box-shadow;
}

#our-vision-image:hover > img {
    transform: scale(1.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

#our-vision-text {
    padding: 3.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

#our-vision-text > h4 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #a1a1a1;
}

#our-vision-text > #heading > h2 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2rem;
    color: #000000;
}

#our-vision-text > #heading > p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-top: 1.8rem;
}

#our-values-text {
    padding: 3.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

#our-values-text > h4 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #a1a1a1;
}

#our-values-text > #heading > h2 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2rem;
    color: #000000;
}

#our-values-text > #heading > p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-top: 1.8rem;
}

#our-values-container {
    padding: 5.9375rem 6.875rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 7.8125rem;
}

.our-values-item > #our-values-item-image {
    height: 70px;
    width: 70px;
    background-image: url('../images/Rectangle 62.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.our-values-item > #our-values-item-image > i {
    font-size: 2rem;
    color: #cbb061;
}   

.our-values-item > h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.06rem;
    color: #000000;
}

.our-values-item > p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    margin-top: 0.5rem;
    color: #000000;
}

@media (max-width: 430px) {
    .grid {
        grid-template-columns: 100vw;
        grid-template-rows: 8vh 85vh 60vh 0vh 0vh 0vh 0vh 0vh 8vh 102vh 60vh 0vh 0vh 0vh 0vh 0vh 8vh 80vh 150vh 0vh 0vh 0vh 0vh 8vh;
        grid-template-areas:
            "."
            "our-story-text"
            "our-story-video"
            "."
            "."
            "."
            "."
            "."
            "."
            "our-vision-text"
            "our-vision-image";
    }
    
    #our-story-text { grid-area: our-story-text; }
    #our-story-video { grid-area: our-story-video; }
    #our-vision-text { grid-area: our-vision-text; }
    #our-vision-image { grid-area: our-vision-image; }

    #our-story-text {
        padding: 3.5rem 1.8rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    #our-story-text > h4 {
        font-size: 1.8rem;
        font-weight: 500;
        letter-spacing: -0.09rem;
        color: #a1a1a1;
    }
    
    #our-story-text > #heading > h2 {
        font-size: 3rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.15rem;
        color: #000000;
	margin-top: 2rem;
    }
    
    #our-story-text > #heading > p {
        font-size: 1.4rem;
        font-weight: 300;
        line-height: 1.5;
        color: #666;
        margin-top: 1.8rem;
    }
    
    #our-story-video {
        padding: 3.5rem 1.8rem;
    }
    
    #our-story-video > video {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.178);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: scale(1);
        will-change: transform, box-shadow;
    }
    
    #our-story-video:hover > video {
        transform: scale(1.02);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    }

    .spacer {
        border: 0px solid red;
    }

    #our-vision-image {
        padding: 3.5rem 1.8rem;
    }
    
    #our-vision-image {
        overflow: hidden;
    }
    
    #our-vision-image > img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.178);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        transform: scale(1);
        will-change: transform, box-shadow;
    }
    
    #our-vision-image:hover > img {
        transform: scale(1.08);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    }
    
    #our-vision-text {
        padding: 3.5rem 1.8rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    #our-vision-text > h4 {
        font-size: 1.8rem;
        font-weight: 500;
        letter-spacing: -0.09rem;
        color: #a1a1a1;
    }
    
    #our-vision-text > #heading > h2 {
        font-size: 3rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.15rem;
        color: #000000;
	margin-top: 2rem;
    }
    
    #our-vision-text > #heading > p {
        font-size: 1.4rem;
        font-weight: 300;
        line-height: 1.5;
        color: #666;
        margin-top: 1.8rem;
    }

    #our-values-text {
        padding: 3.5rem 1.8rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    #our-values-text > h4 {
        font-size: 1.8rem;
        font-weight: 500;
        letter-spacing: -0.09rem;
        color: #a1a1a1;
    }
    
    #our-values-text > #heading > h2 {
        font-size: 3rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.15rem;
        color: #000000;
	margin-top: 2rem;
    }
    
    #our-values-text > #heading > p {
        font-size: 1.4rem;
        font-weight: 300;
        line-height: 1.5;
        color: #666;
        margin-top: 1.8rem;
    }
    
    #our-values-container {
        padding: 3.75rem;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        gap: 2rem;
    }
    
    .our-values-item > #our-values-item-image {
        height: 70px;
        width: 70px;
        background-image: url('../images/Rectangle 62.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        margin-bottom: 2rem;
    }   
    
    .our-values-item > h4 {
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.06rem;
        color: #000000;
    }
    
    .our-values-item > p {
        font-size: 1rem;
        font-weight: 300;
        line-height: 1.5;
        margin-top: 0.5rem;
        color: #000000;
    }
}

#team {
    height: fit-content;
    width: 100%;
    margin-top: 10rem;
    padding: 2rem 3.75rem;
}

#team-container {
    overflow: hidden;
    position: relative;
    height: fit-content;
    width: 100%;
    padding: 6rem 12rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #dbdbdb;
    background-image: url('../images/testimonial-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5rem;
}

.team-heading {
    text-align: center;
}

.team-heading > h4 {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #000000;
    padding: 1rem 1.5rem;
    border-radius: 50rem;
    border: 1px solid #b4b4b4;
}

.team-heading > h2 {
    margin-top: 2rem;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2rem;
    color: #000000;
}

.team-heading > p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    color: #666;
    margin-top: 1rem;
}

.team-heading > button {
    margin-top: 3.5rem;
    font-size: 1.25rem;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 50rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.team-heading > button > i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease-in-out;
}

.team-heading > button:hover {
    background-color: #000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-heading > button:hover > i {
    transform: translate(4px, -4px);
}

.team-member-card {
    padding: 0;
    height: fit-content;
    width: 290px;
    background-color: white;
    border: 1px solid #dbdbdb;
    border-radius: 1rem;
    overflow: visible; /* Changed from hidden to visible */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Ensure proper stacking context */
    z-index: 1; /* Ensure cards stay above other elements */
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.team-member-card > img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top center;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

.team-member-card > h5 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.04rem;
    color: #000000;
    padding: 1.3rem 1.3rem 0.3rem 1.3rem;
}

.team-member-card > p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    color: #00000075;
    padding: 0 1.3rem 1.3rem 1.3rem;
}

#team-cards-container {
    margin: 1rem -12rem 0.5rem; /* top, left/right, bottom */
    width: calc(100% + 30rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem; /* Reduced gap between team member card rows */
    padding: 0.5rem 0; /* Add padding to accommodate hover */
}

.scroll-row {
    width: 100vw;
    overflow: visible; /* Changed from hidden to visible */
    white-space: nowrap;
    padding: 0.5rem 0;
    position: relative;
    margin: 0.5rem 0; /* Adjust margin to prevent clipping */
}

.scroll-left {
    margin-top: 5rem;
}

.scroll-content {
    display: inline-flex;
    gap: 2rem;
    animation: scroll-left 40s linear infinite;
    padding: 1rem 0; /* Add padding for hover space */
}

.scroll-right .scroll-content {
    animation: scroll-right 45s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media (max-width: 430px) {
    #team {
        padding: 3.75rem 1.8rem;
        margin-top: 3.75rem;
    }
    #team-container {
        padding: 3.75rem 1.8rem;
        border-radius: 3rem;
    }
    .team-heading > h4 {
        display: inline-block;
        border: 1px solid #dadada;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 50rem;
        font-weight: 500;
        letter-spacing: -0.06rem;
        color: #000000;
    }
    
    .team-heading > h2 {
        margin-top: 4rem;
        font-size: 2.5rem;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.13rem;
        color: #000000;
    }
    
    .team-heading > p {
        font-size: 1.4rem;
        font-weight: 300;
        line-height: 1.5;
        color: #666;
        margin-top: 1rem;
    }
    
    .team-heading > button {
        margin-top: 3.5rem;
        font-size: 1.25rem;
        font-weight: 400;
        padding: 0.75rem 1.5rem;
        background-color: transparent;
        border: 1px solid #000;
        border-radius: 50rem;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .scroll-left {
        margin-top: 0rem;
    }

    .scroll-content {
        margin-top: 3rem;
    }

    .scroll-2 {
        margin-top: 0rem;
    }

    .team-member-card {
        height: fit-content;
        width: 227px;
        position: relative;
        overflow: visible;
    }
    
    .team-member-card .linkedin-overlay {
        position: absolute;
        bottom: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
        background-color: #0077b5;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease, background-color 0.2s ease;
    }
    
    .team-member-card .linkedin-overlay:hover {
        transform: scale(1.1);
        background-color: #006097;
    }
    
    .team-member-card .linkedin-overlay i {
        color: white;
        font-size: 16px;
    }

    .social-links {
        margin: 0.8rem 0rem;
    }
    
}

#life-at-enira {
    padding: 8rem 9.375rem;
    background: #ffffff;
    margin-top: 8rem;
}

#team-heading {
    margin-bottom: 4rem;
    text-align: center;
    margin-bottom: 7rem;
}

#team-heading > h4 {
    display: inline-block;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
    color: #000;
    border: 1px solid #a1a1a1;
    padding: 0.75rem 2rem;
    border-radius: 50rem;
}

#gallery-text-content {
    margin-bottom: 4rem;
    text-align: center;
    margin-bottom: 7rem;
}

#grid-gallery {
    display: grid; 
    grid-template-columns: repeat(12, 1fr); 
    grid-template-rows: repeat(8, 5vw); 
    gap: 1.5rem; 
    margin-top: 3rem;
}

.bento-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

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

.bento-item:hover .bento-overlay {
    opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #life-at-enira > div {
        height: fit-content;
        grid-template-columns: repeat(6, 1fr);
    }
    
    .bento-item {
        grid-column: span 3 !important;
        grid-row: span 3 !important;
    }
}

@media (max-width: 768px) {
    .bento-item {
        grid-column: span 6 !important;
        grid-row: span 3 !important;
    }
}

@media (max-width: 430px) {
    #life-at-enira {
        margin-top: 2rem;
        padding: 2rem 1.8rem !important;
    }

    #grid-gallery {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }

    #grid-gallery .bento-item {
        width: 100% !important;
        height: 250px !important;
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    #grid-gallery .bento-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    #gallery-text-content {
        margin-bottom: 03rem !important;
    }
}

#blogs {
    height: fit-content;
    width: 100%;
    padding: 9rem 9.375rem;
}

#blogs > #blogs-text-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

#blogs > #blogs-text-content > #heading > h4 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
}

#blogs > #blogs-text-content > #heading {
    flex: 5;
}

#blogs {
    height: fit-content;
    width: 100%;
    padding: 9rem 9.375rem;
}

#blogs > #blogs-text-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

#blogs > #blogs-text-content > #heading > h4 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.09rem;
}

#blogs > #blogs-text-content > #heading {
    flex: 5;
}

#blogs > #blogs-text-content > #blogs-secondary-text {
    flex: 3;
}


#blogs > #blogs-text-content > #heading > h2 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2rem;
    margin-top: 1.8rem;
}

#blogs > #blogs-text-content > #blogs-secondary-text > p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
}

#blogs > #blogs-text-content > #blogs-secondary-text > button {
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 1px solid #000000;
    border-radius: 50rem;
    margin-top: 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

#blogs > #blogs-text-content > #blogs-secondary-text > button > i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

#blogs > #blogs-text-content > #blogs-secondary-text > button:hover {
    color: white;
    background-color: rgb(0, 0, 0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#blogs > #blogs-text-content > #blogs-secondary-text > button:hover > i {
    transform: translate(3px, -3px);
}

#blogs-container {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 5rem;
    margin-top: 6.25rem;
}

.blog > .blog-img {
    height: 25vh;
    width: 100%;
    background-image: url('https://images.pexels.com/photos/1181355/pexels-photo-1181355.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog > .blog-tags {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.blog > .blog-tags > p {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid #afafaf;
    border-radius: 50rem;
}

.blog-details {
    margin-top: 1.5rem;
}

.blog-details > h5 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.08rem;
}

.blog-details > p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
    margin-top: 1rem;
}

.blog > button {
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 1px solid #000000;
    border-radius: 50rem;
    margin-top: 2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Blog Card Hover Effects */
.blog {
    transition: all 0.3s ease;
    border-radius: 0;
    overflow: hidden;
    background: white;
}

.blog:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    margin: -2.5rem;
}

.blog:hover .blog-img {
    transform: none;
}

.blog > .blog-img {
    transition: transform 0.5s ease;
    border-radius: 0;
}

.blog:hover button {
    background-color: #000;
    color: white;
}

.blog:hover button i {
    transform: translateX(3px) translateY(-3px);
}

.blog button i {
    display: inline-flex;
    transition: transform 0.3s ease;
}

/* Team Member Modal Styles */
.team-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.modal-left {
    padding: 2rem 2rem 1.5rem;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.member-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0 0 1.5rem;
    border-radius: 1rem 1rem 0 0;
    border-bottom: 1px solid #f0f0f0;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #f8f8f8;
    color: #555;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.social-link:hover {
    background-color: #f0f0f0;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.modal-right h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.member-title {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.member-bio {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.member-bio p {
    margin-bottom: 1.2em;
}

.member-bio p:last-child {
    margin-bottom: 0;
}

/* Responsive styles */
@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
        gap: 0;
        align-items: stretch;
    }
    
    .modal-left {
        flex: 0 0 45%;
        max-width: 400px;
        padding: 0;
        border-right: 1px solid #f0f0f0;
        border-bottom: none;
        display: flex;
        flex-direction: column;
    }
    
    .member-image {
        height: 300px;
        margin: 0;
        border-radius: 0;
        flex: 1;
    }
    
    .social-links {
        padding: 1.5rem;
        margin-top: 0;
        border-top: 1px solid #f0f0f0;
    }
    
    .modal-right {
        flex: 1;
        padding: 2.5rem;
        background: white;
        overflow-y: auto;
        max-height: 80vh;
    }
}

@media (max-width: 1350px) {
    #blogs-text-content {
        gap: 1rem;
    }

    #services {
        padding: 7rem 9.375rem;
    }
    #gallery-container {
        margin-top: 5rem;
    }

    #testimonials > #testimonial-container > h4 {
        font-size: 3.3rem;
    }

}

@media (max-width: 768px) {
    #blogs-text-content {
        flex-direction: column;
    }

    #testimonials > #testimonial-container > h4 {
        font-size: 3rem;
    }

    #projects-gallery {
        padding: 1.5rem 0;
    }

    #services {
        padding: 4rem 2rem;
    }

    #blogs {
        padding: 5rem 2rem;
    }

    #blogs > #blogs-text-content > #heading > h4 {
        font-size: 1.75rem;
    }

    #blogs > #blogs-text-content > #heading > h2 {
        font-size: 3rem;
    }

    #blogs > #blogs-text-content > #blogs-secondary-text > p {
        font-size: 1.3rem;
    }

    #blogs-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .blog-details > p {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 430px) {
    #testimonials > #testimonial-container > h4 {
        font-size: 1.8rem;
    }

    .blog-tags {
        font-size: 0.8rem;
    }

    .modal-left {
        padding: 0rem;
    }

    .modal-right {
        padding: 1.8rem;
    }

}

#banner {
    height: 60vh;
    width: 100%;
    padding: 2rem 3.75rem;
}

#banner-container {
    height: 100%;
    width: 100%;
    padding: 2rem 3.75rem;
    background-image: url('../images/gray-bg.jpg');
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dbdbdb;
    border-radius: 3rem;
}

#banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#banner-content > h2 {
    text-align: center;
    font-size: 6rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.3rem;
    color: #000000;
}

#banner-content > h2 > span {
    color: #000000;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-style: italic;
    font-size: 3rem;
}

#banner-content > button {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    background-color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
    margin-top: 3rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

#banner-content > button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#banner-content > button:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#banner-content > button > i {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    #banner {
        padding: 0rem 1.8rem;
        height: fit-content;
    }

    #banner-container {
        padding: 2rem 1.8rem;
        height: fit-content;
        border-radius: 2rem;
    }

    #banner-content > h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        letter-spacing: -0.15rem;
    }
    
    #banner-content > h2 > span {
        font-size: 1.4rem;
        letter-spacing: -0.1rem;
        line-height: 2;
    }

    #banner-content > button {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {

    #hero > #hero-text-container > h1 {
	font-size: 4.5rem;
	margin-top: 2.75rem;
    }

    #hero > #hero-text-container > button {
	margin-top: 2.5rem;
    }

    #about {
	padding: 4rem 7rem;
    }

    #about > #about-us-text-content > h2 {
	font-size: 2.1rem;
    }

    #our-story-text > h4 {
	font-size: 1.75rem;
    }

    #our-story-text {
	padding: 3rem;
    }

    #our-story-text > #heading > h2 {
	font-size: 3rem;
	line-height: 1.2;
    }

    #our-story-text > #heading > p {
	font-size: 1.3rem;
    }

    #our-vision-text {
	padding: 3rem;
    }

    #our-vision-text > h4 {
	font-size: 1.75rem; 
    }

    #our-vision-text > #heading > h2 {
	font-size: 3rem;
	line-height: 1.2;
    }

    #our-vision-text > #heading > p {
	font-size: 1.3rem;
    }

    #our-values-text {
	padding: 3rem;
    }

    #our-values-text > h4 {
	font-size: 1.75rem;
    }

    #our-values-text > #heading > h2 {
	font-size: 3rem;
	line-height: 1.2;
    }

    #our-values-text > #heading > p {
	font-size: 1.3rem;
    }

    #our-values-container {
	padding: 3rem;
	gap: 3rem;
    }

    #team-container {
	padding: 6rem 8rem;
    }

    #life-at-enira {
	padding: 6rem 5rem;
	margin-top: 5rem;
    }

    .team-heading > h2 {
	font-size: 3.5rem;
    }

    .team-heading > p {
	font-size: 1.3rem;
    }

    .team-heading > p > br {
	display: none;
    }

    #gallery-text-content {
	margin-bottom: 0rem;
    }

    #blogs {
	padding: 9rem 5rem;
    }

    #blogs > #blogs-text-content > #heading > h2 {
	font-size: 3.5rem;
    }

    #blogs > #blogs-text-content > #blogs-secondary-text > p {
	font-size: 1.3rem;
    }

    #blogs > #blogs-text-content > #blogs-secondary-text {
	flex: 2.5;
    }

    .blog-details > p {
	font-size: 1.1rem;
    }

    .blog-details > h5 {
	font-size: 1.8rem;
    }

    #banner-content > h2 {
	font-size: 5.5rem;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {

    #hero > #hero-text-container > h1 {
	font-size: 5rem;
	margin-top: 3rem;
    }

    #about {
	padding: 6rem 9.375rem;
    }

    #our-story-text > h4 {
	font-size: 1.8rem;
    }

    #our-story-text > #heading > h2 {
	font-size: 3rem;
	line-height: 1.2;
    }

    #our-story-text > #heading > p {
	font-size: 1.3rem;
    }

    #our-vision-text > h4 {
	font-size: 1.8rem;
    }

    #our-vision-text > #heading > h2 {
	font-size: 3rem;
	line-height: 1.2;
    }

    #our-vision-text > #heading > p {
	font-size: 1.3rem;
    }

    #our-values-text > h4 {
	font-size: 1.8rem;
    }

    #our-values-text > #heading > h2 {
	font-size: 3rem;
	line-height: 1.2;
    }

    #our-values-text > #heading > p {
	font-size: 1.3rem;
    }

    #our-values-container {
	padding: 4.5rem;
	gap: 2rem;
    }

    .team-heading > p > br {
	display: none;
    }

    #gallery-text-content {
	margin-bottom: 0rem;
    }

    #life-at-enira {
	padding: 8rem 7rem;
    }

    #blogs {
	padding: 9rem 7rem;
    }

    #blogs > #blogs-text-content > #blogs-secondary-text {
	flex: 2;
    }

    #life-at-enira {
	margin-top: 2rem;
    }
}
