@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #e50914;
    --primary-color-dark: #bb0811;
    --secondary-color: gray;
    --white: #ffffff;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--secondary-color);
    color: var(--white);
    line-height: 1.6;
    


.section_container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    outline: none;
    border: none;
    font-size: 1rem;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 2rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.btn:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}


a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

nav {
    position: fixed;
    isolation: isolate;
    width: 100%;
    z-index: 9;
}

.nav_header {
    padding: 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: var(--primary-color);
}

.nav_logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav_logo a span {
    color: var(--white);
}

.nav_menu_btn {
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.nav_links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    background-color: var(--primary-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    transform: translateY(-100%);
}

.nav_links.open {
    transform: translateY(100%);
}

.nav_links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
}

.nav_links a:hover {
    color: var(--secondary-color);
}

header {
    padding-top: 5rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.header_container {
    display: grid;
    gap: 2rem;
}

.header_image img {
    max-width: 200px;
    margin-inline: auto;
    width: 30%;
    height: -20%;
    position: absolute;
    right: 100px;
    bottom: 0;


}

.header_content h2 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 300;
    color: rgb(180, 62, 19);
    text-align: center;
}

.header_content h1 {
    margin-bottom: 1rem;
    font-size: 2rem,;
    color: rgb(153, 15, 15);
    line-height: 5.5rem;
    text-align: center;
}

.header_content p {
    margin-bottom: 1rem;
    color: var(--white);
    text-align: center;
}

.header_content p span {
    color: var(--primary-color);
}

.header_content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    text-align: center;
}

.socials {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.socials a {
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.socials a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.header_btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header_btns .btn:nth-child(2) {
    background-color: transparent;
    border-color: var(--white);
}

.header_btns .btn:nth-child(2):hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

/* ===== DESKTOP STYLES ===== */
@media (width > 768px) {
    nav {
        position: relative;
        padding-inline: 1rem;
        max-width: var(--max-width);
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav_header {
        flex: 1;
        padding: 0;
        background-color: transparent;
    }

    .nav_logo a {
        font-size: 1.75rem;
    }

    .nav_logo a span {
        color: var(--primary-color);
    }

    .nav_menu_btn {
        display: none;
    }

    .nav_links {
        position: static;
        width: fit-content;
        padding: 0;
        gap: 0;
        flex-direction: row;
        background-color: transparent;
        transform: none !important;
    }

    .nav_links a {
        display: inline-block;
        position: relative;
        isolation: isolate;
        padding: 2rem 1rem;
    }

    .nav_links li:not(:nth-child(4)) a::before {
        position: absolute;
        content: "";
        top: -100%;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: var(--primary-color);
        transition: 0.3s;
        z-index: -1;
    }

    .nav_links li a:hover::before {
        top: 0;
    }

    .nav_links a:hover {
        color: var(--white);
    }

    .nav_links li:nth-child(4) a {
        display: inline-block;
        padding: 0.5rem 1.5rem;
        margin-left: 1rem;
        border: 1px solid var(--white);
        border-radius: 2rem;
    }

    .nav_links li:nth-child(4) a:hover {
        color: var(--white);
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    header {
        padding: 0;
    }

    .header_container {
        padding-block: 0;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        isolation: isolate;
        min-height: 100vh;
    }

    .header_image {
        position: relative;
        height: 50%;
        min-height: 500px;
        
    }

    .header_image img {
        position: absolute;
        width: unset;
        max-width: unset;
        height: 80%;
        right: -5%;
        top: 50%;
        transform: translateY(-90%);
        object-fit: contain;
        
    
    }

    .header_content {
        padding-block: 5rem;
        grid-area: 1/1/2/2;
        z-index: 1;
    }

    .header_content :is(h2, h1, p, h4) {
        text-align: left;
    }

    .header_content h1 {
        font-size: 6rem;
        line-height: 6.5rem;
    }

    .socials,
    .header_btns {
        justify-content: flex-start;
    }
}

@media (width > 1024px) {
    .header_content {
        padding-block: 6rem;
    }

    .header_content h1 {
        font-size: 7rem;
        line-height: 7.5rem;
    }
}
}

.section_container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    outline: none;
    border: none;
    font-size: 1rem;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 2rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.btn:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}


a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

nav {
    position: fixed;
    isolation: isolate;
    width: 100%;
    z-index: 9;
}

.nav_header {
    padding: 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: var(--primary-color);
}

.nav_logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav_logo a span {
    color: var(--white);
}

.nav_menu_btn {
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.nav_links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    background-color: var(--primary-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    transform: translateY(-100%);
}

.nav_links.open {
    transform: translateY(100%);
}

.nav_links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
}

.nav_links a:hover {
    color: var(--secondary-color);
}

header {
    padding-top: 5rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.header_container {
    display: grid;
    gap: 2rem;
}

img {
    display: flex;
    width: 100%;
    font-weight: 300;
}

.header_content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 350;
    color: orangered;
    text-align: center;
}

.header_content h1 {
    margin-bottom: 1rem;
    font-size: 2rem,;
    color: red;
    line-height: 3.5rem;
    text-align: center;
    font-weight: 500;
}

.header_content p {
    margin-bottom: 1rem;
    color: var(--white);
    text-align: center;
}

.header_content p span {
    color: var(--primary-color);
}

.header_content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    text-align: center;
}

.socials {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.socials a {
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.socials a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.header_btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header_btns .btn:nth-child(2) {
    background-color: transparent;
    border-color: var(--white);
}

.header_btns .btn:nth-child(2):hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

/* ===== DESKTOP STYLES ===== */
@media (width > 768px) {
    nav {
        position: relative;
        padding-inline: 1rem;
        max-width: var(--max-width);
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav_header {
        flex: 1;
        padding: 0;
        background-color: transparent;
    }

    .nav_logo a {
        font-size: 1.75rem;
    }

    .nav_logo a span {
        color: var(--primary-color);
    }

    .nav_menu_btn {
        display: none;
    }

    .nav_links {
        position: static;
        width: fit-content;
        padding: 0;
        gap: 0;
        flex-direction: row;
        background-color: transparent;
        transform: none !important;
    }

    .nav_links a {
        display: inline-block;
        position: relative;
        isolation: isolate;
        padding: 2rem 1rem;
    }

    .nav_links li:not(:nth-child(4)) a::before {
        position: absolute;
        content: "";
        top: -100%;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: var(--primary-color);
        transition: 0.3s;
        z-index: -1;
    }

    .nav_links li a:hover::before {
        top: 0;
    }

    .nav_links a:hover {
        color: var(--white);
    }

    .nav_links li:nth-child(4) a {
        display: inline-block;
        padding: 0.5rem 1.5rem;
        margin-left: 1rem;
        border: 1px solid var(--white);
        border-radius: 2rem;
    }

    .nav_links li:nth-child(4) a:hover {
        color: var(--white);
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    header {
        padding: 0;
    }

    .header_container {
        padding-block: 0;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        isolation: isolate;
        min-height: 100vh;
    }

    .header_image {
        position: relative;
        height: 70%;
        min-height: 500px;
        
    }

    .header_image img {
        position: absolute;
        width: unset;
        max-width: unset;
        height: 70%;
        right: -5%;
        top: 50%;
        transform: translateY(-90%);
        object-fit: contain;
        transition: ease;
    
    }

    .header_content {
        padding-block: 5rem;
        grid-area: 1/1/2/2;
        z-index: 1;
    }

    .header_content :is(h2, h1, p, h4) {
        text-align: left;
    }

    .header_content h1 {
        font-size: 6rem;
        line-height: 6.5rem;
    }

    .socials,
    .header_btns {
        justify-content: flex-start;
    }
}

@media (width > 1024px) {
    .header_content {
        padding-block: 6rem;
    }

    .header_content h1 {
        font-size: 7rem;
        line-height: 7.5rem;
    }
}



.about_container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: top;
    padding: 90px;
}

.about_content .section_title {
    text-align: left;
    color:#e50914;
}

.about_desc {
    margin-bottom: 1rem;
    color: white;
    text-size-adjust: 90%;
    flex: 1;
}

.about_stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.stat_label {
    font-size: 1rem;
    color: #aaa;
}

.about_skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.skill_tag {
    background-color: rgba(233, 5, 17, 0.15);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    border: 1px solid rgba(122, 116, 117, 0.3);
}

.about-image{
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.about_image img {
    max-width: 100%;
    width: 350px;
    margin-inline: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(207, 7, 7, 0.3);
    position: absolute;
    right: -0.7%;
    height: 50%;
    min-height: 300px;
    
    
    
    
}

.portfolio_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio_card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #1a1a4a;
    aspect-ratio: 4/3;
}

.portfolio_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio_card:hover .portfolio_image img {
    transform: scale(1.05);
}

.portfolio_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,12,56,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio_card:hover .portfolio_overlay {
    opacity: 1;
}

.portfolio_overlay h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
}

.portfolio_overlay p {
    color: #ddd;
    font-size: 0.9rem;
}

.portfolio_overlay a {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.3s;
}

.portfolio_overlay a:hover {
    background: var(--primary-color-dark);
}



.contact_wrapper {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.contact_info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact_item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact_item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-width: 2.5rem;
}

.contact_item h4 {
    font-weight: 500;
    font-size: 1.1rem;
}

.contact_item p {
    color: #aaa;
}

.contact_socials {
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.contact_form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact_form input,
.contact_form textarea {
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    border: 1px solid #333;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact_form input:focus,
.contact_form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact_form textarea {
    resize: vertical;
}

.contact_form .btn {
    align-self: flex-start;
}