body {
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

/* navbar */
.navbar {
    position: absolute;
    top: -100px;
    /* Start hidden above view */
    left: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-20px);
    /* Add vertical offset for smooth fade slide */
    transition: opacity 0.6s ease, top 0.4s ease, transform 0.4s ease;
}

.navbar.visible {
    top: 0;
    opacity: 1;
    transform: translateY(0);
    /* Slide into place */
    pointer-events: auto;
}


.nav-left,
.nav-right {
    pointer-events: auto;
    /* Re-enable interaction */
}

.nav-left {
    width: 40%;
}

.nav-right {
    width: 60%;
    display: flex;
    justify-content: space-between;
    padding-left: 30px;
}

.nav-right-side {
    width: 10%;
    text-align: left;
}

.nav-right-mid {
    width: 80%;
    text-align: center;
}

.nav-left-content {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    color: #969696;
    padding-bottom: 4px;
}
.nav-left-content a{
    color: #969696;
}
.nav-left-content a:hover{
     color: black;
}
.nav-left-content:hover {
    color: black;
}

.time {
    color: black;
    margin: 0;
}

.right-text {
    position: relative;
    color: black;
    margin: 0;
    font-size: 14px;
    padding-bottom: 2px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 4px;
    /* Important: Shrink to text width */
}

.right-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0%;
    background-color: black;
    transition: width 0.4s ease;
    transform-origin: left;
    border-radius: 2px;
}

.right-text:hover::after {
    width: 100%;
    /* Animate from left to full text width */
}


/* top-section */
.top-section {
    display: flex;
    height: 90vh;
    /* Optional: adjust based on your layout */
}

.top-left {
    width: 40%;
    position: relative;
    overflow: hidden;
    display: flex;
}

.logo {
    position: relative;
    /* Ensure it's above the video */
    z-index: 1;
    height: 20px;
    width: auto;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    height: 100%;
}

.top-right {
    width: 60%;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: flex-end;
    /* Align to bottom */
    /* Optional spacing from bottom */
    box-sizing: border-box;
}

.header-section {
    padding-bottom: 50px;
    opacity: 0;
    transform: translateY(50px);
    /* Start lower */
    transition: opacity 0.6s ease, transform 0.4s ease;
}

.header-section.visible {
    opacity: 1;
    transform: translateY(0);
    /* Move to natural position */
}

.header {
    font-size: 65px;
    margin: 0;
    color: black;
    font-weight: 500;
    line-height: 4.3rem;
}

.square-btn {
    position: relative;
    padding: 25px 40px;
    background-color: black;
    color: white;
    border: 1px solid black;
    /* Move the border to the main button */
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    margin-top: 30px;
}

.square-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: white;
    z-index: -1;
    transition: width 0.4s ease;
}

.square-btn:hover::before {
    width: 100%;
}

.square-btn:hover {
    color: black;
}



/* second-section */
.second-section {
    background-color: black;
    padding: 120px 15px;
    padding-bottom: 60px;
}

.second-section-grid {
    padding: 0 150px;
}

.second-head {
    font-size: 45px;
    color: white;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    /* Start below */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.second-head.visible {
    opacity: 1;
    transform: translateY(0);
    /* Move to original position */
}


.video-text-wrap {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 10px;
}

.second-video {
    width: 280px;
    height: 130px;
    overflow: hidden;
    flex-shrink: 0;
}

.inline-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.line {
    display: inline-block;
}

.second-para {
    font-size: 20px;
    font-weight: 300;
    color: #969696;
    margin: 0;
    padding: 20px 0px;
    line-height: 1.8rem;
}

.second-para.b {
    font-size: 20px;
    font-weight: 300;
    color: #969696;
    margin: 0;
    padding: 20px 0px;
    line-height: 1.8rem;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.3s ease, transform 0.8s ease;
}

.second-para.b.visible {
    opacity: 1;
    transform: translateY(0);
}



.second-grid-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 2s ease;
    padding: 20px 0px;
}

.second-grid-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


.second-grid {
    display: flex;
    gap: 50px;
    padding: 20px 0px;
}

.count-grid {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    width: 100%;
    border-top: 1px solid rgba(150, 150, 150, 0.3);
}

.number {
    font-size: 70px;
    color: white;
    margin: 0;
    font-weight: 600;
    line-height: 1;
    /* Remove extra line spacing */
}

.count-grid-head {
    font-size: 16px;
    font-weight: 300;
    color: #969696;
    margin: 0;
    line-height: 1.2;
    /* Optional: tighter spacing */
    padding-left: 12px;
    /* Optional: add space between number and text */
}


/* project-section */
.project-section {
    padding: 50px 15px;
    background-color: black;
    display: flex;
    gap: 150px;
    padding-bottom: 200px;
}

.project-section-grid {
    width: 50%;
    box-sizing: border-box;
    overflow: hidden;
}

.project-section-grid.a,
.project-section-grid.b {
    will-change: transform;
    transition: transform 0.2s ease-out;
}

.project-gridbox {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.3s ease, transform 0.8s ease;
}

.project-gridbox.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-box {
    padding-top: 100px;
}

.video-grid {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.works-video-bgr {
    width: 100%;
    height: 100%;
}

.works-video-bgr video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.project-box-grid-head {
    font-size: 24px;
    margin: 0;
    color: white;
    padding: 10px 0px;
    padding-bottom: 5px;
}

.date-wrap {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date {
    font-size: 16px;
    font-weight: 300;
    color: #969696;
    margin: 0;
}

.learn {
    font-size: 15px;
    font-weight: 300;
    color: #969696;
    text-transform: uppercase;
    color: white;
}

.project-right-grid-head {
    width: fit-content;
    margin-left: auto;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    width: 60%;
    /* optional */

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.3s ease, transform 0.8s ease;
}

.project-right-grid-head.visible {
    opacity: 1;
    transform: translateY(0);
}



.latest {
    font-size: 40px;
    margin: 0;
    color: white;
}

.project-second-para {
    font-size: 20px;
    font-weight: 300;
    color: #969696;
    margin: 0;
    padding: 20px 0px;
    line-height: 1.8rem;
}

.square-btn-w {
    position: relative;
    padding: 25px 40px;
    background-color: white;
    color: black;
    border: 1px solid white;
    /* Ensure visible border */
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    align-self: flex-start;
    margin-top: 70px;
    transition: color 0.3s ease;
}

.square-btn-w::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: black;
    z-index: -1;
    transition: width 0.4s ease;
}

.square-btn-w:hover::before {
    width: 100%;
}

.square-btn-w:hover {
    color: white;
}


/* video-section */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Use auto if you want dynamic height */
    overflow: hidden;
    padding: 120px 15px;
}

.background-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-content-section {
    display: flex;
}

.content-left {
    width: 30%;
}

.content-right {
    width: 70%;
}

.video-content-sidehead {
    font-size: 20px;
    font-weight: 300;
    color: #969696;
    margin: 0;
    line-height: 1.8rem;
}

.video-content-sidehead.b:hover {
    color: white;
}

.video-content-head {
    font-size: 44px;
    margin: 0;
    color: white;
    line-height: 3.2rem;

    /* Animation Setup */
    opacity: 0;
    transform: translateX(700px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.video-content-head.visible {
    opacity: 1;
    transform: translateX(0);
}

.video-bottom-section {
    padding: 100px 0 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.video-bottom-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-grid-section {
    display: flex;
    padding: 20px 0px;
    gap: 30px;
}

.video-box {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0px;
    background: rgba(255, 255, 255, 0.01);
    /* subtle white tint */
    backdrop-filter: blur(1px);
}

.video-box-text {
    font-size: 28px;
    margin: 0;
    color: white;
    text-align: center;
    font-weight: 300;
}

/* founder-section */
.founder-section {
    padding: 120px 35px;
    height: auto;
}

.founder-top-section {
    display: flex;
    padding-bottom: 50px;
}

.founder-top-left {
    width: 45%;
}

.founder-top-right {
    width: 55%;
    display: flex;
    justify-content: flex-end;
    /* Align child to the right */
    align-items: center;
    /* Center vertically */
}

.founder {
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.7s ease;
}

.founder.visible {
    opacity: 1;
    transform: translateX(0);
}

.founder-text-right-section {
    width: 85%;
}

.founder-heading {
    font-size: 50px;
    margin: 0;
    font-weight: 500;
    color: black;
    line-height: 3.1rem;

    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.6s ease, transform 0.7s ease;
}

.founder-heading.visible {
    opacity: 1;
    transform: translateX(0);
}

.founder-heading-b {
    font-size: 50px;
    margin: 0;
    font-weight: 500;
    color: black;
    line-height: 3.1rem;
}



.review-section {
    padding-top: 20vh;
    display: flex;
    flex-direction: column;
    gap: 30px;

    opacity: 0;
    transform: translateX(200px);
    transition: opacity 0.6s ease, transform 1s ease;
}

.review-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.first-review {
    font-size: 30px;
    line-height: 2.2rem;
    color: black;
    margin: 0;
}

.second-review {
    font-size: 30px;
    line-height: 2.2rem;
    color: #969696;
    margin: 0;
}

.founder-bottom-section {
    display: flex;
    padding-top: 50px;

    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.founder-bottom-section.visible {
    opacity: 1;
    transform: translateY(0);
}


.founder-bottom-left {
    width: 35%;
}

.founder-bottom-right {
    width: 65%;
}

.founder-text-section {
    display: flex;
    gap: 20px;
}

.count {
    font-size: 24px;
    color: #969696;
    margin: 0;
}

.count-text {
    font-size: 30px;
    color: black;
    margin: 0;
    line-height: 2rem;
}

.custom-line {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    /* use rgba */
    margin: 30px 0;
    transform: scaleY(0.3);
    /* Visually simulates 0.3px height */
    transform-origin: top;
}


/* latest-blog-section */
.latest-blog-section {
    background-color: black;
    padding: 120px 15px;
    padding-bottom: 30px;
}

.bottom-head-section {
    display: flex;
    justify-content: space-between;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bottom-head-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.bottom-head {
    font-size: 50px;
    font-weight: 400;
    color: white;
    margin: 0;
}

.bottom-head-section .square-btn-w {
    margin: 0;
}

.blog-bottom-section {
    padding: 80px 0px;

    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.blog-bottom-section.visible {
    opacity: 1;
    transform: translateY(0);
}


.bottom-grid-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-grid-section {
    overflow: hidden;
    /* Prevent image overflow */
}


.bottom-grid-left {
    width: 60%;
}

.post-date {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: #969696;
    margin-bottom: 10px;
}

.post-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    color: white;
    margin: 0;
}

.learn-more {
    color: white;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 500;
    padding-top: 15px;
}

.bottom-grid-right {
    width: 25%;
}

.bottom-grid-right {
    overflow: hidden;
    /* Prevent image overflow when zoomed */
}


.bottom-img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Trigger zoom from parent section hover */
.bottom-grid-section:hover .bottom-grid-right .bottom-img {
    transform: scale(1.05);
    /* Zoom in */
}

.bottom-custom-line {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    /* use rgba */
    margin: 40px 0;
    transform: scaleY(0.1);
    /* Visually simulates 0.3px height */
    transform-origin: top;
}

.bottom-contact-section {
    display: flex;
}

.bottom-contact-section-left {
    width: 40%;
}

.bottom-contact-section-right {
    width: 60%;
}

.contact-head {
    font-size: 50px;
    font-weight: 400;
    color: #969696;
    margin: 0;
}

.contact-hover-section {
    color: white;
}

.contact-hover-section:hover {
    color: #969696;
}

.address-section {
    display: flex;
}

.address-grid {
    width: 100%;
}


/* footer */
.footer {
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col.links-col .footer-links li:hover {
    color: white;
}

.footer-col.social-col .footer-links li:hover {
    color: #969696;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.logo-col {
    flex: 1.5;
}

.bottom-logo {
    height: 20px;
    width: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col.social-col {
    display: flex;
    justify-content: flex-end;
}

.footer-col.social-col .footer-links {
    text-align: right;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col.social-col .footer-links li {
    color: white;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 12px;
    line-height: 1.6;
    width: 100%;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-weight: 300;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 200;
}

.footer-left,
.footer-right {
    margin-top: 10px;
}

.footer-left:hover {
    color: white;
}

.footer-right:hover {
    color: white;
}