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

body {
    background-color: black;
    color: #ffffff;
}

#header {
    width: 100%;
    height: 100vh;
}

.header-text p {
    background-color: #000000;
    display: inline-block;
    margin-bottom: 20px;
}

.header2-text h1 {
    background-color: black;
    display: inline-block;
}

.header-text {
    padding: 10px 10%;
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 35px;
    margin-top: 20px;
}

.header2-text {
    padding: 10px 10%;
}

.container {
    padding: 10px 10%;
    background-color: black;
}

.container ul li {
    background-color: black;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 140px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0px;
    bottom: -4px;
    transition: .5s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* --------- About Section ---------- */

#about {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    color: #ababab;
}

.about-col-1 {
    flex: 1;
    max-width: 240px;
    text-align: center;
    padding: 20px;
    background-color: #111;
    border-radius: 12px;
    color: white;
}

.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    margin-bottom: 10px;
}

.name {
    font-size: 20px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.email {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #ababab;
    font-size: 26px;
    margin: 0 8px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #fff;
}

.about-col-2 {
    flex: 2;
}

.subtitle {
    font-size: 36px;
    font-weight: 600;
    color: white;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.tab-titles {
    color: white;
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 100%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li a i {
    size: 24px;
}

.tab-contents ul li span {
    color: #ff004f;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* -------- Contact Section -------- */

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 10px;
}

.contact-left p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    color: #ababab;
    font-size: 30px;
    margin-right: 15px;
    display: inline-block;
    transition: transform(-5s);
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    font-size: 20px;
    text-decoration: none;
    background: black;
    color: white;
    transition: background .5s;
}

.btn:hover {
    background: #ff004f;
}

.btn.btn2 {
    display: inline-block;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #ffffff;
    font-size: 18px;
    border-radius: 6px;
}

/* ---------------- Portfolio Section ---------------- */

#portfolio {
    padding: 50px 0;
}

#work-section {
    display: center;
    margin: 80px auto 0;
    text-align: center;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(4, 300px); /* 4 columns */
    gap: 10px;                             /* adjust spacing as needed */
    width: 100%;
    margin-top: 50px;
    justify-content: center;                /* center items horizontally */
}

.work-list > div {
    width: 300px;
    height: 300px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, .6), #ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    transition: height .5s;
}

.layer p {
    font-family: 'Trebuchet MS';
    font-size: 20px;
}

.layer h2 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

/* ---------------- Responsive ---------------- */

@media only screen and (max-width: 768px) {
    #about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-col-1,
    .about-col-2 {
        max-width: 100%;
    }

    .tab-titles {
        justify-content: center;
        flex-wrap: wrap;
    }

    .work-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-list > div {
        width: 100%;
        height: auto;
    }
}


@media (max-width: 992px) {
    .work-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .work-list {
        grid-template-columns: 1fr;
    }
}
