* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', 'Poppins', sans-serif;
    scroll-behavior: smooth;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}


body {
    background-color: black;
    color: white;

}

#header {
    width: 100%;
    height: 100vh;
    background-color: #000000;
 display: flex;
  align-items: center;
    
}

.header-text {
    text-align: left;
    padding-left: 50px;
    /* adjust spacing as needed */
    margin-top: 180px;   
    color: #ababab;
    /* or as needed for vertical spacing-------------it was 400 */
}

.header-text h1 {
  font-size: 60px;
  text-align: center;
 text-align: left;     /* Align text to the left */
  margin-top: 300px;
  margin-left: 120px;       /* Move h1 up by reducing top margin */
     /* Remove left padding to center it properly */
}




.header-text h1 span {
    color: #ffd230;

}

/* my edittttttt-------------------------- */
/* --- Header Keywords Styling --- */
.keywords p {
  font-size: 24px;
  color: #dddddd;
  line-height: 1.6;
  max-width: 800px;
  text-align: center;
  margin: 20px auto 0 auto;
   margin: 40px auto 0 auto; 
   margin-left: 120px; /* Top margin gives space from h1 */
}




/* Container controls the layout */
.container {
    padding: 10px 10%;
}

/* NAVBAR itself */
nav {
     display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: black;
  z-index: 1000;
  padding: 10px 10%;
}

/* LOGO stays left */
.logo {
    width: 120px;
    height: auto;
    margin-right: 10%;
    /* Push rest of nav content to the right */
    display: block;
}

/* NAV LINKS */
#sidemenu {
    display: flex;
    gap: 40px;
    margin-left: 40%;
    /* Push links to right */
    align-items: center;
    list-style: none;
}

/* NAV ITEMS */
#sidemenu li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

#sidemenu li a::after {
    content: "";
    width: 0;
    height: 3px;
    background: #ffd230;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

#sidemenu li a:hover::after {
    width: 100%;
}






/* about me -----------------------------------------------------*/
.about-col-1 img {
    width: 100%;
    border-radius: 15px;
    max-width: 300px;
    /* Adjust to your preferred size */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: cover;
    /* Optional: crop to fit the box neatly */
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-2 {
    flex-basis: 60%;

}

#about {
    padding: 80px 0;
    color: #eae9e6;
}

.row {
    display: flex;
    justify-content: space-between;
}

.sub-title {
    font-size: 60px;
    font-weight: 500px;
    margin-top: -20px;

}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 60px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: "";
    width: 0;
    height: 3px;
    background: #ffd230;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #ffd230;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* -----------------------projects--------------------- */
#portfolio .container {
    padding-left: 40px;
    /* Adds space on the left side */
}

.container {
    padding-left: 40px;
    padding-right: 40px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
    column-gap: 30px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #ffd230);
    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;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    color: #ffd230;
    text-decoration: none;
    font-size: 22px;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layer a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ffd230;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background-color 0.5s, color 0.5s, box-shadow 0.5s
}

.btn:hover {
    background: #ffd230;
}


/* --------contact---------- */
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: #ffd230;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;

}

.social-icons a:hover {
    color: #ffd230;
    transform: translateY(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: #ffd230;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    font-size: 18px;
    color: #fff;
    border-radius: 10px;
}

form .btn2 {
    padding: 10px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    margin-top: 20px;
}

.copyright i {
    color: #ffd230;
}

/* for the website to be responsive(for small screen) */
nav .bi {
    display: none;
}

@media only screen and (max-width: 600px) {
   #header {
  background-image: url('Images/meee.jpg');
  background-repeat: no-repeat;
  background-position:center;  /* Image on the right, vertically centered */
  background-size: 250px auto;        /* Maintain aspect ratio */
  background-color: #000000;          /* fallback */
  padding-right: 0;                   /* remove unnecessary right padding */
}


    .header-text {
        position: absolute;
        bottom: 20px;
        /* adjust spacing from bottom */
        left: 20px;
        /* adjust horizontal padding */
        color: white;



    }
    .keywords p {
    font-size: 18px;
    text-align: center;
    margin: 20px auto 0 auto;
    margin-left: 0;
    max-width: 90%;
  }

    .header-text p {
        margin: 0;
        font-size: 14px;
        font-family: 'Raleway', sans-serif;


    }

    .header-text h1 {
        margin: 5px 0 0;
        font-size: 20px;
    }

    /* nav bar-------- */


    nav {
        height: 65px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: black;
        z-index: 1000;
        padding: 10px 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 0.1px 10px #ffd230
    }

    .logo {
        width: 100px;
    }

    #sidemenu {
        position: fixed;
        top: 68px;
        right: -200px;
        background:  goldenrod;
        width: 150px;
        height: 100vh;
        padding-top: 60px;
        transition: right 0.5 ease;
        flex-direction: column;
    }


    #sidemenu li {
        display: block;
        margin: -6px 0;
        /* 10px vertical spacing only */
    }

    #sidemenu i {
        position: absolute;
        display: block;
        color: gainsboro;
        margin: 20px;
        font-size: 24px;
        top: -10px;     /* Move up */
  right: 60px;   /* Move left — adjust as needed */
  cursor: pointer;
    }

    .bi-list {
        display: block;
        color: #ffd230;
        font-size: 28px;
        cursor: pointer;
    }

    .header-text {
        margin-top: 200px;
        /* add enough space to avoid overlap with fixed navbar */
        text-align: center;
        font-size: 18px;
        padding: 10px;
    }


    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5%;
    }

    nav ul {
        width: 100%;
        padding-left: 0;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 16px;
    }

    .container {
        padding: 10px 5%;
    }

    .header-text {
        font-size: 24px;
        margin-top: 20vh;
    }

    .header-text h1 {
        font-size: 22px;
    }

    img {
        width: 100%;
        height: auto;
         margin-top: 20px;
    }



    nav .bi {
        display: block;
        font-size: 25px;
         margin-top: -20px;
    }

    nav ul {
        background: #ffd23080;
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav .bi-list {
        font-size: 24px;
        color: white;
        position: absolute;
        right: 20px;
        top: 35px;
        cursor: pointer;
    }

    nav ul li {
        margin: 25px;
        display: block;
    }

    nav ul .bi {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
/* ---------------------------------------- */
    .row {
        flex-direction: column;
        padding: 10px 15px;
        /* Less space on sides */
        gap: 20px;
    }

    .about-col-1 {
        text-align: center;
        margin-bottom: 20px;
    }

    .about-col-1 img {
        width: 100%;
        max-width: 250px;
        height: auto;
        border-radius: 20px;
        margin: 0 auto;
    }

    .about-col-2 {
        font-size: 15px;
        text-align: justify;
        max-width: 100%;
        padding: 0 5px;
    }

    .sub-title {
        font-size: 28px;
        text-align: center;
    }

    .tab-links {
        font-size: 15px;
        margin-right: 10px;
        display: inline-block;
    }

    .tab-titles {
        text-align: center;
    }

    .portfolio {
        padding: 0 15px;
    }

    .portfolio .work-list {
        grid-template-columns: 1fr;
        /* stack one per row */
        gap: 20px;
    }

    .portfolio .work img {
        width: 100%;
    }

    .portfolio h1.sub-title {
        font-size: 24px;
        text-align: center;
    }

    .portfolio .layer p {
        font-size: 14px;
    }

    .portfolio .btn {
        display: block;
        text-align: center;
        margin: 20px auto;
    }

    .layer a {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-top: -20px;
        /* Move upward slightly */
        margin-bottom: 0;
        margin-left: auto;
        margin-right: -38px;
        align-self: flex-end;
    }



    .layer h3 {
        margin-top: 20px;
    }

    .layer p {
        margin: 0;
        font-size: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 10px 10px 2px;
    }

}

#msg {
    color: greenyellow;
    margin-top: -45px;
    display: block;
}