/* Reset & Base Styles */
* {
    padding: 0;
    margin: 0;
    font-family: 'Alexandria', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #051510;
    color: #e9ffec;
    overflow-x: hidden;
}

/* Header */
.head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.main-logo img {
    width: 220px;
    height: auto;
    display: block;
}

.head nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
    list-style-type: none;
}

.nav-link {
    color: #e9ffec; 
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #65ba9e; 
    cursor: pointer;
}

/* Video Background Section */
.video-container {
    position: relative;
    width: 100%;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; 
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -1;
    filter: brightness(0.6);
}

/* Hero Content */
.content {
    display: flex;
    width: 100%;
    padding: 120px 50px 40px 50px;
}

.l {
    flex: 4;
    color: #ffffff;
    max-width: 650px;
}

.l h1 {
    font-size: 3.2rem;
    color: #65ba9e;
    line-height: 1.2;
}

.l p {
    font-size: 1.3rem;
    margin-top: 15px;
    color: #e9ffec;
    line-height: 1.6;
}

.r {
    flex: 1;
}

/* Main Button */
.main-btn {
    background-color: #65ba9e;
    color: #081c15;
    padding: 14px 28px;
    border-radius: 30px;
    margin-top: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #65ba9e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-btn:hover {
    background-color: #081c15;
    color: #65ba9e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(101, 186, 158, 0.3);
}

/* scroll Brands */
.im-wor{
    text-align: center;
    background-color: #081c15;
}

.scr{
    width: 100%;
    overflow: hidden;
}

.sscont{
    display: flex;
    width: max-content;
    gap: 50px;
    animation: scroll 30s linear infinite;
    background-color: #081c15;
    border-bottom: 1px #65ba9e solid;
}

.card{
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

@keyframes scroll{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-50%);
    }
}


/* Projects Section */
.backgorund-co1 {
    width: 100%;
    padding: 80px 20px; 
    background: linear-gradient(
        to bottom,
        #081c15 0%,   
        #020b08 40%,    
        #051510 100% 
    );
}

.main-h1f {
    text-align: center;
    color: #e9ffec;
    font-size: 2.8rem;
    margin-bottom: 40px;
}

.cards-con-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    max-width: 1050px;
    margin: 0 auto;
}

.card-work {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 35px;
    overflow: hidden;
    border: 4px solid #65ba9e;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.img-w {
    width: 100%;      
    height: 100%;      
    object-fit: cover; 
    display: block;
}

.zoom:hover .card-work {
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 15px 30px rgba(101, 186, 158, 0.25);
}

.img-2 {
    grid-column: span 2;
}

.img-2 .card-work {
    aspect-ratio: 2 / 1;
}

/* Terms Section */
.terms h1 {
    padding-top: 80px;
    color: #65ba9e;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.terms-con {
    max-width: 850px;
    padding: 40px;
    background-color: #081c15;
    border: 2px solid #65ba9e; 
    border-radius: 24px;
    margin: 0 auto;
}

.terms p {
    color: #e9ffec;
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 12px;
}

.terms p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------- */
/* Animations (Load & Scroll Reveal)                  */
/* -------------------------------------------------- */

/* 1. Page Load Animations */
.fade-down {
    animation: fadeInDown 1s ease forwards;
}

.fade-up {
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------- */
/* Media Queries (Responsive Design)                  */
/* -------------------------------------------------- */

@media screen and (max-width: 900px) {
    .content {
        padding: 120px 30px 40px 30px;
    }

    .l h1 {
        font-size: 2.5rem;
    }

    .cards-con-grid {
        grid-template-columns: 1fr;
    }

    .img-2 {
        grid-column: span 1;
    }

    .img-2 .card-work {
        aspect-ratio: 1 / 1;
    }
}

@media screen and (max-width: 600px) {
    .head {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .main-logo img {
        width: 170px;
    }

    .head nav ul {
        gap: 15px;
    }

    .content {
        padding: 160px 20px 40px 20px;
    }

    .l h1 {
        font-size: 2rem;
    }

    .l p {
        font-size: 1rem;
    }

    .terms-con {
        padding: 25px 20px;
    }

    .terms p {
        font-size: 1rem;
    }
}