@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* variables */
:root {
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);
    --text-color-second: rgb(46, 44, 44);
    --text-color-third: rgb(8, 210, 18);
    --first-color: rgb(8, 210, 18);
    --first-color-hover: rgb(40, 91, 212);
    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Popping', sans-serif;
}

body {

    background: var(--body-color);
}

.container {
    width: 100%;
    position: relative;
}

/* smooth scroll */
html {
    scroll-behavior: smooth;
}



/* scroll baar design */
::-webkit-scrollbar {
    width: 10px;
    border-radius: 25px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Global button design */
.btn {
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}

.btn>i {
    margin-left: 10px;
}

.btn:hover {
    background: var(--second-color);
    color: var(--color-white);
}

/* Global icon design */
i {
    font-size: 16px;
}

/* Navigation BAr */
nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 1000;
}

.nav_logo {
    position: relative;
}

.nav_name {
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}

.nav_logo span {
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5rem;
    color: var(--text-color-second);

}

.nav_menu,
.nav_menu_list {
    display: flex;
}

.nav_menu,
.nav_list {
    list-style: none;
    position: relative;
}

.nav_link {
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}

.nav_menu_btn {
    display: none;
}

.nav_menu_btn i {
    font-size: 28px;
    cursor: pointer;
}

/*  -------------active link--------- */
.active_link {
    position: relative;
    color: var(--first-color);
    transition: color .3s ease;
}

.active_link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
}






/* wrapper design */
.wrapper {
    padding-inline: 10vw;
}

/* Featured Box */
.featured_box {
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}




/* Featured text */
.featured_text {
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}

.featured_text_card span {
    background: var(--first-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 30px;
    border-radius: 5px;
}

.featured_name {
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}

.typed_text {
    text-transform: capitalize;
    color: var(--text-color-third);
}

.featured_text_info {
    font-size: 30px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}

.featured_text_btn {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

}

/* chat */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px 20px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 5px;
}

/* chatgpt */

.featured_text_btn>.blue_btn {
    background: var(--first-color);
    color: var(--color-white);

}

.featured_text_btn>.blue_btn:hover {
    background: var(--first-color-hover);
}

a {
    text-decoration: none;
    background: inherit;
    color: inherit;
}

.social_icons {
    display: flex;
    margin-top: 5em;
    gap: 30px;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;

    a {
        text-decoration: none;
        color: black;
    }
}

.icon:hover {
    color: var(--first-color);

    a {
        color: var(--first-color);
    }
}

/* ----- FEATURED IMAGE BOX ----- */
.featured_image {
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;

    /* i made  */


}

.image {
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}

.image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
}



@keyframes imgFloat {
    50% {
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}

.scroll_btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    gap: 5px;
    text-decoration: none;
    color: var(--text-color-second);
    background: var(--color-white);
    border-radius: 30px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}

.scroll_btn i {
    font-size: 20px;
}

/* ------------MAIN------------- */
.section {
    padding-block: 5em;
    
}

.row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;

}

.col {
    display: flex;
    width: 50%;
}

.top_header {
    text-align: center;
    margin-bottom: 5em;

    h1 {
        font-weight: 600;
        color: var(--text-color-second);
        margin-bottom: 10px;
    }

    span {
        color: #999;
    }
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color-second);
}

.about_info {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;

    p {
        text-align: center;
        font-size: 25px;
        color: #777;
    }
}

.about_btn button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    border-radius: 30px;
    background: var(--first-color);
    color: var(--color-white);

}

.about_btn button:hover {
    background: var(--first-color-hover);
}

.skills_box {
    margin: 10px;
}

.skills_header {
    margin-bottom: 30px;
}

.skills_list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    span {
        font-size: 14px;
        background: var(--first-color);
        color: var(--color-white);
        padding: 2px 10px;
        border-radius: 5px;
    }
}

.contact_info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background: var(--second-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);

    h2 {
        color: var(--color-white);
        margin-bottom: 20px;
    }

    p {
        display: flex;
        align-items: center;
        color: var(--color-white);
        gap: 10px;
        margin-block: 5px;
        font-size: 18px;
    }
}

.contact_info::after {
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}

.contact_info::after {
    background: var(--color-white);
}

.contact_info:hover.contact_info p,
.contact_info:hover.contact_info h2,
.contact_info:hover.contact_info i {
    color: #777;
    z-index: 2;
}

.contact_info:hover.contact_info::after {
    bottom: 0;
}

.form_control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form_inputs {
    display: flex;
    gap: 10px;
    width: 100%;
}

.input_field {
    width: 50%;
    height: 55px;
    background: transparent;
    border-radius: 10px;
    outline: none;
    padding-inline: 10px;
    border: 2px solid #AAA;
}

textarea {
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    padding: 15px 20px;
    border-radius: 10px;
    outline: none;
    resize: none;
}

.form_button {
    .btn {
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--second-color);
        color: var(--color-white);
    }

    i {
        font-size: 18px;
        rotate: -45deg;

    }

    .btn:hover {
        background: #00B5E7;
    }
}

/* ---------Footer--------- */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    padding-block: 40px 60px;
    margin-top: 10px;
}

.top_footer p {
    font-size: 25px;
    font-weight: 600;
}

.middle_footer .footer_menu {
    display: flex;

}

.footer_menu_list {
    list-style: none;
}

.footer_menu_list a {
    text-decoration: none;
    font-weight: 500;
    margin-inline: 20px;
    color: var(--text-color-second);
}

.footer_social_icons {
    display: flex;
    gap: 30px;
}

.bottom_footer {
    font-size: 14px;
    margin-top: 10px;
}

/* media query responsive(1024px) */
@media only screen and (max-width:1024px) {
    .featured_text {
        padding: 0;
    }

    .image,
    .image.img {
        width: 320px;
        height: 320px;
    }

}

/* media query responsive(900px) */
@media only screen and (max-width:900px) {
    .nav_button {
        display: none;
    }

    .nav_menu.responsive {
        left: 0;
    }

    .nav_menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        min-height: 450px;
        height: 90vh;
        transition: .3s;

    }

    .nav_menu_list {
        flex-direction: column;
    }

    .nav_menu_btn {
        display: flex;
        align-items: center;
        justify-content: center;

    }

    .featured_box {
        flex-direction: column;
        justify-content: center;
        height: 100vh;

        
    }

    .featured_text {
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }

    .social_icons {
        margin-top: 2em;
    }

    .featured_image {
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }

    .image,
    .image img {
        width: 200px;
        height: 200px;
    }

    .row {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }

    .col {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .about_info,
    .contact_info {
        width: 100%;
    }
}

@media only screen and (max-width:540px) {
    .featured_name {
        font-size: 40px;
    }

    .form_inputs {
        flex-direction: column;
    }

    .input_field {
        width: 100%;
    }
}



/* projects */
.services-section {
    padding: 60px 20px;
    text-align: center;
}

.services-section .top_header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.services-section .project-title {
    font-size: 1.4rem;
    margin: 10px 0 20px;
    color: rgb(8, 210, 18);
}

.project-media {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 10px;
    max-width: 1200px;
    margin: 10px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Images and Videos: same style */
.project-media img,
.project-media video {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 16/9;
    /* maintain video/image ratio */
    max-height: 160px;
    /* about 50% of typical image height */
}

.project-media img:hover,
.project-media video:hover {
    transform: scale(1.5);
}

.project-media video {
    outline: none;
}

@media (max-width: 768px) {
    .project-media {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .project-media img,
    .project-media video {
        max-width: 90%;
        max-height: 180px;
        /* slightly taller on mobile for better view */
    }

    .services-section .top_header h1 {
        font-size: 2rem;
    }

    .services-section .project-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 15px;
    }

    .project-media {
        gap: 20px;
    }
}

/* services */

@media screen and (max-width: 768px) {
    .featured_box {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .featured_text,
    .featured_image {
        width: 100%;
        text-align: center;
        /* center text if you want */
    }

    .featured_text {
        padding-left: 0;
        /* remove left padding on mobile */
        padding: 20px;
        /* add general padding */
    }

    .featured_text_info {
        font-size: 18px;
        /* scale text down for mobile */
    }

    .featured_text_card span {
        font-size: 24px;
    }

    .image {
        width: 250px;
        height: 250px;
    }

    .image img {
        width: 250px;
        height: 250px;
        object-fit: cover;
    }
}

/* testimonial secion  */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}



.letter-info {
    padding: 1rem;
    text-align: center;
    font-size: 25px;
    color: #777;
   
}

.letter-info h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #222;
}

.download-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #08d212;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #06b80f;
}

/* testimonial section end  */


/* small screen fix */

@media only screen and (max-width: 540px) {
    /* Remove extra padding/margin from wrapper containers */
    .wrapper,
    .services-section,
    .gallery-grid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .project-box,
    .about_info,
    .contact_info {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 5px;
        padding-right: 5px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .gallery-item {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    /* Prevent section from adding extra side padding */
    section,
    .section {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* end  */