*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body
{
background: black;
color: #fff;

}
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;

}
.container
{
    padding: 10px 10%;
}
/* Navbar Styles */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 10%;
    background: rgba(0, 0, 0, 0.6); /* semi-transparent */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px); /* nice glass effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    
}

nav .logo {
    width: 140px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    transition: right 0.5s;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
    transition: 0.3s ease;
}

nav ul li a:hover {
    background: #90ee9065;
    color: #fff;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background: #132b1f;
    transition: 0.4s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hamburger menu icons */
nav .fas {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 900px) {
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        background: #111;
        height: 100vh;
        width: 250px;
        flex-direction: column;
        padding-top: 60px;
        text-align: center;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav .fas {
        display: block;
        z-index: 1000;
    }
}



/* Changed to Roboto for the intro text as well for consistency */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

.intro-text-modern {
    font-family: 'Raleway', sans-serif;
    color: #fff;
    padding: 22% 0 0 10%; /* Adjusted top padding to move it down */
    max-width: 600px; /* Increased max-width */
    animation: fadeInUp 1s ease-out forwards;
    text-align: left;
}

.intro-text-modern h1 {
    font-size: 3.5em; /* Increased font size */
    font-weight: 700;
    margin-bottom: 18px; /* Increased margin */
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.intro-text-modern h1 span {
    color: #90EE90; /* Light green for "Rakibul Hasan" or specific parts */
}

.intro-text-modern h2 {
    font-size: 1.5em; /* Increased font size */
    font-weight: 500; /* Slightly less bold for better readability with length */
    color: #e0ffe0;
    margin-bottom: 20px; /* Increased margin */
    line-height: 1.2; /* Slightly reduced line-height to help keep it on one line */
    white-space: nowrap; /* Forces text to stay on one line */
    overflow: hidden; /* Hides any overflow if the line is too long */
    text-overflow: ellipsis; /* Adds an ellipsis if text is cut off */
}

.intro-text-modern h2 span {
    color: #ffffff;
}

.intro-text-modern p {
    font-size: 1em; /* Increased font size */
    font-weight: 400;
    color: #c0f0c0;
    line-height: 1.7;
    margin-top: 10px; /* Increased margin */
}

.intro-text-modern strong {
    color: #90EE90;
    font-weight: 700;
}

/* Subtle animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px); /* Increased animation distance */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
#about
{
    padding: 80px 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col-1
{
flex-basis: 35%;
}
.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}
.about-col-2{
    flex-basis: 60%;
}
.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}
.sub-title span {
    color: #8ba8f8; /* Only 'Me' (inside the span) will be #8ba8f8 */
}
.tab-titles
{
    display: flex;
    margin: 20px 0 40px;
    color: #fff;
    
}
.tab-links
{
    margin-right: 50px; 
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #8ba8f8;
    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: #8ba8f8;
    font-size: 14px;
}
.tab-contents
{
    display: none;
}
.tab-contents.active-tab{
    display: block;

}
/*----------------work----*/
#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 a{
    text-decoration: none;
    color:#fff;
    font: size 12px;
    margin-top: 20px;
    display: inline-block;

}
.services-list div:hover{
    background: #246d67;
    transform: translateY(-10px);
}
/*--------Workshop-----------------*/
#Workshop{
    padding: 50px 0;
}
.Workshop-list{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.Workshop{
    border-radius:10px;
    position:relative;
    overflow: hidden;
}
.Workshopimg{
    width: 100%;
    border-radius: 10px;
    display: black;
    transition: transform 0.5s;
}
.layere
{
width: 100%;
height: 0;
background: linear-gradient(rgba(0,0,0,0.6), #000000);
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;
}
.layere h3{
    font-weight: 500;
    margin-bottom: 20px;
}
.layere a{
    margin-top: 20px;
    color: #1f6a46;
    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);
}
.work:hover .layere{
    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width:fit-content;
    border: 1px solid #246d67;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
}
.btn:hover{
    background: #246d67;
}

/*--------portfolio-----------------*/
#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;
    /* Add this line for the cyan border */
    border: .1px solid cyan;
}
.work img{
    width: 100%;
    border-radius: 10px;
    display: black;
    transition: transform 0.5s;
}
.layer
{
width: 100%;
height: 0;
background: linear-gradient(rgba(0,0,0,0.6), #00544f);
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: #1f6a46;
    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);
}
.work:hover .layer{
    height: 100%;
}
.Workshop span{
    color: #246d67;
}
.btn{
    display: block;
    margin: 50px auto;
    width:fit-content;
    border: 1px solid #246d67;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
}
.btn:hover{
    background: #246d67;
}

/* -------------------Contact--------- */
contact-left{
    flex-basis: 35%;
}
contact-right{
    flex-basis: 60%;
}
.contact-left p
{
    margin-top: 30px;
}
.contact-left p i{
    color:#4D9472;
    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;
    
}
.social-icons  a:hover{
    color: #4D9472;
    transition: transform 0.5s;
}
.btn.btn2{
    display: inline-block;
    background:#1f6a46
}
.contact-right form{
width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}
form btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}
.copyright i{
    color: #4D9472;
}
/*_______________css for small screen-----------*/
nav .fas{
    display: none;
}
@media only screen and (max-width: 600px)
{
    #header{
        background-image: url( images/phone-background.png);
        .header-text{
            margin-top: 100%;
            font-size: 16px;
        }
        .header-text h1{
            font-size: 30px;
        }

    }
    nav .fas{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #1f6a46;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
       z-index: 2;
       transition: right 0.5s;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fas{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .sub-title{
        font-size: 40px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2{
        font-size: 14px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    .copyright{
        font-size: 14px;
    }
}
#msg{
    color: #0bf3df;
    margin-top: -20px;
    display: block;
}