* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;


}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff1fa;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 130px;
    background-color: #fff1fa;

}

.page-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    /* background: #F3F3F3; same as body */
    background-color: #fff1fa;
}


.logo img {
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5c83e6;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #5c83e6;
    transform: translateY(-2px);
}



/* Hero Section */
.hero {
    padding: 30px 130px;
    background-color: #fff1fa;
}

.hero h1 {
    font-size: 72px;
    font-weight: bold;
    color: #5c83e6;
    margin-bottom: 10px;
    display: inline-block;
}

.hero h1 span {
    color: #000;
}

.hero .tagline {
    font-size: 30px;
    display: inline-block;
    margin-left: 20px;
    margin-bottom: 10px;
    vertical-align: middle;
    font-weight: 100;
}

.hero .tag {
    font-size: 30px;
    display: inline-block;
    margin-left: 20px;
    margin-bottom: 20px;
    vertical-align: middle;
    color: #5c83e6;
    font-weight: bolder;
}

.hero h2 {
    font-size: 48px;
    font-weight: 500;
}

.hero h2 span {
    color: #5c83e6;
}

/* Works Section */
.works {
    padding: 30px 130px 45px 100px;
    background-color: #fff1fa;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.work-item:last-child {
    margin-bottom: 0;
}

.work-item-1 {
    gap: 50px;
    margin-right: 100px;
}


/* .work-item:nth-child(even) {
            /* flex-direction: row-reverse; */

/* .video-container {
            flex: 1;
            max-width: 700px;
            background-color: #000;
            position: relative;
            padding-bottom: 39.375%;
            cursor: pointer;
            overflow: hidden;
            border-radius: 8px;
        } */

.work-item-2 {
    gap: 100px;
    margin-left: 100px;
}



.video-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin: 0px auto 0px;
    background: gray;
    margin-top: 25px;
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
}

.video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.35s ease;
}

.video-container.paused .video {
    filter: blur(6px);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 64px;
    color: #000;
}

.video-container.playing .play-overlay {
    display: none;
}


.video-wrapper {
    display: flex;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.video-container__play-button {
    color: #fff;

}

.animation__description {
    margin-top: 40px;
    max-width: 900px;
    margin-bottom: 60px;
}

.animation__description p {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Update this rule */
.video-container.paused .video {
    filter: none;
}



.work-info {
    flex: 0 0 300px;
    text-align: center;
}

.work-info img {
    max-width: 200px;
    margin-bottom: 20px;
}

.work-info h3 {
    font-size: 32px;
    color: #5c83e6;
    margin-bottom: 10px;
}

/* Green variant heading */
.work-info.green h3 {
    color: #5A9E6F;
}

/* ================= LINK ================= */
.work-info a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    /* SAME transition timing */
    transition: color 0.3s ease;
}


.know-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.playbutton-icon {
    width: 20px;
    height: 20px;
    background-color: #5c83e6;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: 12px;

    /* tiny optical fix */
    padding-left: 2px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.know-more:hover {
    color: #e49424;

}

.know-more:hover .playbutton-icon {
    background-color: #e49424;

}


/* Video 1 */
/* VIDEO FUNCTIONALITY STATES */

/* Hide play button while playing */
.video-container.playing .play-button {
    display: none;
}

/* Blur video when paused */
.video-container.paused video {
    filter: blur(6px);
}

/* Smooth transition */
.video-container video {
    transition: filter 0.35s ease;
}



.video-2 .play-button {
    border-left-color: #fff;
    /* white triangle */
}

.work-info a:hover {
    color: #e49424;
}

.know-more:hover {
    color: #e49424;
}

.know-more:hover .play-icon {
    background-color: #e49424;
    transform: scale(1.05);
}

.know-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-decoration: none;

    transition: color 0.3s ease;
}

.play-icon {
    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: 12px;
    padding-left: 3px;
    padding-top: 1px;

    color: #fff;
    background-color: #5A9E6F;

    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover sync */
.know-more:hover {
    color: #5A9E6F;
}

.know-more:hover .play-icon {
    background-color: #5A9E6F;
}


.know-more:hover .play-icon {
    background-color: #e49424;
    transform: scale(1.05);
}


/* Footer */

footer {
    background-color: #3C3C3C;
    color: #fff;
    padding: 60px 150px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 40px;
    margin-left: -5px;
}

.footer-section h4 {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff;
    display: inline-block;
    width: fit-content !important;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-section p {
    font-size: 16px;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid #666;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.footer-bottom-right {
    display: flex;
    gap: 20px;
}

.work-footer {
    margin-top: 115px;
}

.social-cont {
    margin-top: 15px;
    margin-left: -5px;
}



.social-icon {
    height: 60px;
    width: 60px;
}

.footer-list {
    text-decoration: none;
    color: white;
}

.footer-list:hover {
    color: #5c83e6;
}

.contact {
    display: flex;
}

.label {
    width: 60px;
    /* controls colon position */
}

.value {
    white-space: nowrap;
}

/* Footer bottom Privacy & Terms links */
.footer-bottom-right a {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom-right a:hover {
    color: #5c83e6;
}

/* TABLET VIEW (max-width: 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 18px 50px;
    }

    .logo img {
        height: 70px;
    }

    nav ul {
        gap: 22px;
    }

    nav ul li a {
        font-size: 16px;
    }

    /* Hero Section */
    .hero {
        padding: 40px 50px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero .tagline {
        font-size: 24px;
    }

    .hero .tag {
        font-size: 24px;
    }

    .hero h2 {
        font-size: 36px;
    }

    /* Works Section */
    .works {
        padding: 30px 50px 0px;
    }

    .work-item {
        gap: 30px;
        margin-bottom: 60px;
    }

    /* Reset custom horizontal offsets */
    .work-item-1 {
        margin-right: 0;
        gap: 30px;
    }

    .work-item-2 {
        margin-left: 0;
        gap: 30px;
    }

    .work-info {
        flex: 0 0 240px;
    }

    .work-info img {
        max-width: 160px;
    }

    .work-info h3 {
        font-size: 26px;
    }

    .know-more {
        font-size: 16px;
    }

    .video-container {
        max-width: 580px;
    }

    /* Footer */
    footer {
        padding: 50px 50px 30px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1.5fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-section h4 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .footer-section ul li,
    .footer-section p {
        font-size: 14px;
    }

    .work-footer {
        margin-top: 125px !important;
        padding-top: 0 !important;
    }

    .footer-logo img {
        height: 44px;
        margin-bottom: 30px;
    }

    .social-cont {
        margin-top: 12px;
    }

    .footer-bottom {
        font-size: 13px;
    }
}

/* MOBILE VIEW (<= 768px) */
@media (max-width: 768px) {
    .page-wrapper footer {
        margin-top: 65px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .logo img {
        height: 60px;
    }

    nav ul {
        gap: 15px;
        font-size: 16px;
    }

    /* Hero Section - Better Mobile Layout */
    .hero {
        padding: 30px 20px;
    }

    .hero-title {
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 36px;
        display: block;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .hero .tag {
        display: none;
    }

    .hero .tagline {
        font-size: 18px;
        margin-left: 0;
        display: block;
        margin-top: 5px;
        line-height: 1.4;
    }

    .hero h2 {
        font-size: 24px;
        margin-top: 15px;
        line-height: 1.3;
    }

    /* Works Section - Critical Mobile Fixes */
    .works {
        padding: 20px 20px 0px;
    }

    /* Reset margins for mobile */
    .work-item-1,
    .work-item-2 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 20px !important;
    }

    /* Stack layout properly */
    .work-item {
        flex-direction: column;
        margin-bottom: 50px;
        gap: 20px;
    }

    /* First work item: Video is first in HTML, so reverse to show logo first */
    .work-item-1 {
        flex-direction: column-reverse;
    }

    /* Second work item: Info is already first in HTML, keep normal order */
    .work-item-2 {
        flex-direction: column;
    }

    /* Video Container - Perfect Mobile Sizing */
    .video-container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
        border-radius: 10px;
    }

    /* Work Info - Centered and Compact */
    .work-info {
        flex: unset;
        width: 100%;
        text-align: center;
        padding: 0 10px;
    }

    .work-info img {
        max-width: 140px;
        margin-bottom: 15px;
    }

    .work-info h3 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .know-more {
        font-size: 16px;
    }

    /* Hide play overlay button on mobile */
    .play-overlay {
        display: none !important;
    }

}


/* SMALL MOBILE (<= 480px) */
@media (max-width: 480px) {

    header {
        padding: 15px 20px;
    }

    .logo img {
        height: 60px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 16px;
    }

    /* Hero - Extra Small Screens */
    .hero {
        padding: 25px 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .tag,
    .hero .tagline {
        font-size: 16px;
    }

    .hero h2 {
        font-size: 20px;
        margin-top: 12px;
    }

    /* Works Section */
    .works {
        padding: 15px 15px 0px;
    }

    .work-item {
        margin-bottom: 40px;
    }

    .work-info img {
        max-width: 120px;
    }

    .work-info h3 {
        font-size: 22px;
    }

    .know-more {
        font-size: 15px;
    }

    /* Video - Maintain aspect ratio */
    .video-container {
        border-radius: 8px;
    }

    /* Footer */
    footer {
        padding: 30px 15px 20px;
    }

    .footer-section h4 {
        font-size: 20px;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 11px;
    }

    .contact {
        flex-direction: row;
        align-items: baseline;
    }

    .label {
        width: 45px;
        flex-shrink: 0;
    }

    .value {
        white-space: normal;
        word-break: break-word;
    }
}