*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins',sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background: black;
    color: white;
}
#header{
     width: 100%;
     min-height: 100vh;
     background-image: url(Images/user-background.png);
     background-size: cover;
     background-position: center;
     padding-bottom: 20px; /* Add spacing */
     border-bottom: 100px solid black; /* Optional visual aid */
}
.container{
    padding: 10px 10%;
}
nav{
    display: flex;
    align-item: 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: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;

}
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}
nav ul li a:hover::after{
    width: 100%;
}
.header-text{
    margin-top: 20%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
    line-height: 1.2;
}
.header-text h1 span{
    color: red;
}
.typing-effect {
    display: inline-block;
    white-space: nowrap;        /* Prevents wrapping */
    overflow: hidden;           /* Hides overflowing text */
    vertical-align: bottom;     /* Aligns with baseline of text */
    border-right: 3px solid red; /* Blinking cursor effect */
    animation: typing 3s steps(10, end), blink-cursor 0.5s step-end infinite;
}

/* Typing animation */
@keyframes typing {
    from {
        width: 0;               /* Starts with no text visible */
    }
    to {
        width: 9ch;             /* Adjust width based on text length */
    }
}

/* Cursor blinking animation */
@keyframes blink-cursor {
    50% {
        border-color: transparent; /* Cursor disappears */
    }
}

.container .btn {
    display: inline-block;
    margin-top: 20px;
    color: white;
    background: #ff004f;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.container .btn:hover {
    background: #b54769;
}


<!--ABOUT ME -->
#about{
    padding: 80px 20px;
    color: #ababab;
    margin-top: 50px; /* Ensures spacing above this section */
    background: gray; /* Temporary background for debugging */
}
.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col1{
    flex-basis: 35%;
}
.about-col1 img{
    width: 100%;
    border-radius: 15px;
}
.about-col2{
    flex-basis: 60%;
}
.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;

}
.sub-title-p {
    padding: 10px;
    font-size: 16px;
    color: #fff;
    line-height: 1.5;
    text-align: justify;
}
.tab-titles{
    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: 50%;
}
.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: #b54769;
    font-size: 14px;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}

/*------------------------------services------------------*/
#services{
    padding: 30px 0;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}
.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}
.services-list div h2{
    font-size:30px;
    font-weight:500;
    margin-bottom: 15px;
}
.services-list div:hover{
    background: #ff004f;
    transform: translateY(-10px);
}
/*--------protfolio-------*/
#portfolio{
    padding: 50px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.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), #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;
    font-size: 14px;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}
.p {
    margin-left: 20px;
    text-align: left; /* Ensure text is left-aligned */
    font-size: 12px;
    line-height: 1.2;
}

.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%;
}

/*----contact----*/
/* Contact Section */
#contact {
    padding: 50px 0;
    background: black;
    color: white;
}

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

.contact-left h1 {
    font-size: 30px;
    margin: 20px 0;
}

.contact-left p {
    margin: 10px 0;
    font-size: 18px;
}

.contact-left p i {
    margin: 10px 0;
    color: #ff004f;
    margin-right: 10px;
}

.contact-left .btn {
    display: inline-block;
    margin-top: 20px;
    color: white;
    background: #ff004f;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.contact-left .btn:hover {
    background: #b54769;
}

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

.contact-right form {
    display: flex;
    flex-direction: column;
}

.contact-right input,
.contact-right textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    background: #333;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
}

.contact-right button {
    background: #ff004f;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    transition: background 0.3s;
}

.contact-right button:hover {
    background: #b54769;
}
/*---footer---*/
footer {
    background-color: #333; /* Dark background */
    color: #fff; /* White text color */
    text-align: center; /* Center align the text */
    padding: 20px 0; /* Add some space around the text */
    font-size: 14px; /* Set font size */
    position: relative;
    bottom: 0;
    width: 100%; /* Full width footer */
}

footer p {
    margin: 0; /* Remove default margins */
    line-height: 1.5; /* Add some line spacing */
}

/*----css for small screen*/
nav .fa-regular{
    display: none;
}
nav .fa-solid{
    display: none;
}

@media only screen and (max-width: 800px){
    #header{
        background-image: url(Images/user-phone-background.png);
        background-size: cover; /* Ensure the image scales correctly */
        background-repeat: no-repeat; /* Prevent tiling */
        background-position: center;
    }
    .header-text{
        margin-top: 30%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fa-regular{
        display: block;
        font-size: 25px;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding: 50px 0;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li{
        display: block;
        margin: 25%;
    }
    nav ul .fa-regular{
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
    }
    .sub-title{
    font-size: 30px;
    }
    .about-col1{
    flex-basis: 100%;
    margin-bottom: 30px;
    }
    .about-col2{
    flex-basis: 100%;
    font-size: 12px;
    }
    .tab-links{
       font-size: 16px;
       margin-right: 20px;
   }
   .p {
       margin-left: 12px;
       text-align: left; /* Ensure text is left-aligned */
       font-size: 10px;
       line-height: 1.5;
   }

   .sub-title-p {
       padding: 10px;
       font-size: 12px;
       color: #fff;
       line-height: 1.5;
       text-align: justify;
   }
}


