*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
html{
    scroll-behavior: smooth;
}
body{
    background: #080808;
    color: #fff;
}
#header{
    width: 100%;
    height: 100vh;
    background-image: url("Ebishushani/background.png");
    background-size: cover;
    background-position: center;
}
.container{
    padding: 10px 10%;      
}

nav{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
}
.logo{
    width: 84px;
}

nav ul{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    margin-left: auto;
}

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

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.5s;
}
nav ul li a:hover::after{
    width: 100%;
    transition: 0.5s;
}


.header-text{
    margin-top: 20%;
    font-size: 30px;
    text-align: right;
}
.header-text p {
    font-size: 18px;
}
.header-text h1{
    font-size: 50px;
    margin-bottom: 10px;
}
.header-text h1 span{
    color: #ff004f;
}
/* -----------about------------ */
#about{
    padding: 80px 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}
.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}
.about-col-2{
    flex-basis: 60%;
}
.sub-title{
    color: #fff;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 24px; /* Adds space below the "About Me" text */
}

.about-col-2 p {
    line-height: 1.8; /* Adds line spacing to paragraph text */
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 19px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

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

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
    font-size: 17px;
}
.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: 14px;
    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 a{
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    margin-top: 20px;
    display: inline-block;
}
.services-list div:hover{
    background: #ff004f;
    transform: translateY(-10px);
}
/* -----------Portfolio------------ */
#porfolio{
    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%; /*layers are hidden initially*/
    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;
}
.layer a{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
}
.work:hover img{
    transform: scale(1.1);
    transition: 0.5s;
}
.work:hover .layer{
    height: 100%;
    transition: 0.5s;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}
.btn:hover{
    background: #ff004f;
}

/* -----------contact------------ */
#contact .row{
    flex-direction: row;
}
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left p{
    margin-top: 30px;
}
.contact-left p i{
    color: #ff004f;
    margin-left: 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 0.5s;
}
.social-icons a:hover{
    color: #ff004f;
    transform: translateY(-5px);
}
.btn.btn2{
    display: inline-block;
    background: #ff004f;
}
.contact-right form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    border-radius: 6px;
}
form btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

/* -----------copyright------------ */
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}
.copyright p{
    color: #fff;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}
.copyright span{
    color: #ff004f !important;
    font-style: italic;
    font-weight: 400;
    text-shadow: 0 0 8px rgba(255, 0, 79, 0.3);
    transition: all 0.3s ease;
}
.copyright span:hover{
    color: #fff !important;
    text-shadow: 0 0 15px rgba(255, 0, 79, 0.6);
    transform: scale(1.02);
}

/* Hide mobile menu icons on desktop */
.fa-solid.fa-bars, 
.fa-solid.fa-xmark {
    display: none;
}

/* Your existing mobile media query will override this and show them on mobile */
@media only screen and (max-width: 600px) {
    /* ...your existing mobile styles... */
    
    .fa-solid.fa-bars {
        display: block;
        font-size: 25px;
        color: #fff;
        cursor: pointer;
    }
    
    .fa-solid.fa-xmark {
        display: block;
        font-size: 25px;
        color: #fff;
        cursor: pointer;
    }
}
/* -----------css styling for small screen------------ */

@media only screen and (max-width: 600px){
    /* Mobile Styles */
    nav{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .logo{
        width: 40px; /* Further reduced logo size for mobile */
    }
    nav ul{
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -160px;
        width: 160px;
        height: 100vh;
        background: #ff004f;
        padding-top: 50px;
        z-index: 10;
        transition: right 0.5s;
    }
    nav ul li{
        margin: 15px 0;
        width: 100%;
    }
    nav ul li a{
        font-size: 18px;
        padding: 10px 20px;
    }
    .fa-bars{
        font-size: 25px;
        color: #fff;
        cursor: pointer;
    }
    .fa-xmark{
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 25px;
        color: #fff;
        cursor: pointer;
    }
    
    /* Backdrop blur overlay */
    .menu-backdrop{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        z-index: 1;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s ease;
        pointer-events: none;
    }
    
    .menu-backdrop.active{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    #header{
        background-image: url("Ebishushani/phone-background.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: left;
        height: 100vh;
        display: flex;
        align-items: center;
    }
    .container{
        padding: 20px 5%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .header-text{
        margin-top: 0;
        text-align: right;
        padding-bottom: 80px;
    }
    .header-text p{
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.4;
        font-weight: 500;
        color: #ff004f; /* Red for mobile */
    }
    .header-text h1{
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 0;
        font-weight: 600;
        color: #ff004f; /* Red for mobile */
    }
    .header-text h1 span{
        color: #fff; /* White for Keith on mobile */
    }
    
    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -150px;
        width: 150px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s ease;
    }
    nav ul li{
        display: block;
        margin: 25px 0;
    }
    nav ul.fas{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    
    /* About section mobile styles */
    #about{
        padding: 40px 0;
    }
    .container{
        padding: 10px 5%;
    }
    .sub-title{
        font-size: 32px;
        text-align: center;
        margin-bottom: 20px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 20px;
        text-align: center;
    }
    .about-col-1 img{
        width: 80%;
        max-width: 300px;
    }
    .about-col-2{
        font-size: 14px;
        line-height: 1.6;
    }
    .about-col-2 p{
        text-align: justify;
        margin-bottom: 15px;
    }
    .tab-links{
        font-size: 14px;
        margin-right: 15px;
    }
    
    /* Services section mobile styles */
    #services{
        padding: 40px 0;
    }
    .services-list{
        grid-template-columns: 1fr;
        grid-gap: 20px;
        margin-top: 30px;
    }
    .services-list div{
        padding: 30px 20px;
        font-size: 13px;
    }
    .services-list div h2{
        font-size: 24px;
        margin-bottom: 10px;
    }
    .services-list div i{
        font-size: 40px;
        margin-bottom: 20px;
    }
    /* Contact section mobile styles */
    #contact{
        padding: 40px 0;
    }
    #contact .row{
        flex-direction: column;
    }
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    .contact-left{
        margin-bottom: 30px;
        text-align: left;
    }
    .contact-left h1{
        font-size: 28px;
        margin-bottom: 20px;
        text-align: center;
    }
    .contact-left p{
        font-size: 14px;
        margin: 15px 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .contact-left p i{
        font-size: 18px;
        margin-right: 10px;
        margin-left: 0;
    }
    .social-icons{
        margin-top: 20px;
        text-align: left;
    }
    .social-icons a{
        font-size: 24px;
        margin: 0 10px;
    }
    .contact-right{
        padding: 0 20px;
    }
    .contact-right form{
        width: 100%;
    }
    form input, form textarea{
        font-size: 14px;
        padding: 12px;
        margin: 10px 0;
        border-radius: 8px;
        border: 1px solid #555;
        transition: border-color 0.3s;
    }
    form input:focus, form textarea:focus{
        border-color: #ff004f;
        outline: none;
    }
    form textarea{
        min-height: 120px;
        resize: vertical;
    }
    form button{
        padding: 12px 40px;
        font-size: 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
        margin-top: 10px;
    }
    
    /* Copyright section mobile styles */
    .copyright{
        padding: 20px 0;
        margin-top: 15px;
    }
    .copyright p{
        font-size: 14px;
        line-height: 1.5;
        padding: 0 20px;
    }
    .copyright span{
        font-size: 12px !important;
        display: block;
        margin-top: 8px;
        font-style: italic;
    }
}
#msg{
    color: #61b752;
    margin-top: -10px;
    display: block;
}