/* --- 1. General Setup & Resets --- */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #fff;
    overflow-x: hidden; 
}

.container {
    padding: 10px 10%;
}

/* --- 2. Navigation & Logo --- */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-text {
    font-size: 35px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    mix-blend-mode: overlay;
    opacity: 0.9;
}

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.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* --- 3. Header Section --- */
#header {
    width: 100%;
    height: 100vh;
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: #ff004f;
}

/* --- 4. About Section & Tabs --- */
#about {
    padding: 80px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 { flex-basis: 35%; }
.about-col-2 { flex-basis: 60%; }

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
    transition: 0.5s;
}

.about-col-1 img:hover { transform: scale(1.03); }

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

.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 { display: none; }
.tab-contents.active-tab { display: block; }

/* --- 5. Shared Items Styling --- */
.skill-item, .education-item, .project-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    background: #1a1a1a;
    padding: 18px;
    border-radius: 10px;
    transition: 0.4s;
    border-left: 4px solid #ff004f;
}

.skill-item:hover, .education-item:hover, .project-item:hover {
    transform: translateX(10px);
    background: #222;
    box-shadow: 0 5px 15px rgba(255, 0, 79, 0.2);
}

.skill-item i, .education-item i, .project-item i {
    font-size: 28px;
    color: #ff004f;
    margin-right: 20px;
    min-width: 45px;
    text-align: center;
}

.skill-item span, .education-item span, .project-item span {
    color: #ff004f;
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.skill-item p, .education-item p, .project-item p {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

/* --- 6. Services Section --- */
#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;
    border-radius: 10px;
    transition: 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
    color: #ff004f;
}

.services-list div h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
    position: relative;
}

.services-list div a::after {
    content: ''; width: 0; height: 2px; background: #fff;
    position: absolute; left: 0; bottom: -4px; transition: 0.5s;
}

.services-list div:hover {
    background: #ff004f;
    transform: translateY(-10px);
}

.services-list div:hover a::after { width: 100%; }

/* --- 7. Portfolio / My Work (FIXED BACKGROUNDS) --- */
#portfolio { 
    padding: 80px 0 50px; 
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 40px; 
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    height: 400px; /* বক্সের হাইট ঠিক রাখা হয়েছে */
}

/* এই অংশটুকু আপনার সব ব্যাকগ্রাউন্ড পিকচার ফুল করে দিবে */
.work img { 
    width: 100%; 
    height: 100%; /* ছবি যাতে বক্সের পুরো হাইট নেয় */
    object-fit: cover; /* ছবি চ্যাপ্টা না হয়ে পুরো বক্স কভার করবে */
    display: block;
    transition: 0.5s; 
}

.layer {
    width: 100%; 
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f);
    position: absolute; 
    left: 0; 
    bottom: 0;
    display: flex; 
    align-items: center; 
    justify-content: center;
    flex-direction: column; 
    padding: 0 25px; 
    text-align: center;
    transition: 0.5s; 
    overflow-y: auto; 
}

.layer h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.layer p {
    font-size: 14px;
    line-height: 1.5;
}

.layer a {
    margin-top: 15px; 
    color: #ff004f; 
    background: #fff;
    width: 45px; 
    height: 45px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px;
    flex-shrink: 0;
}

.work:hover img { transform: scale(1.1); }
.work:hover .layer { height: 100%; }

/* --- 8. Contact Section --- */
.contact-left { flex-basis: 35%; }
.contact-right { flex-basis: 60%; }

.contact-left p { margin-top: 30px; }
.contact-left p i { color: #ff004f; margin-right: 15px; font-size: 25px; }

.social-icons { margin-top: 30px; }
.social-icons a {
    font-size: 30px; margin-right: 15px; color: #ababab; transition: 0.5s;
}

.social-icons a:hover { color: #ff004f; transform: translateY(-5px); }

.btn {
    display: block; margin: 40px auto; width: fit-content;
    border: 1px solid #ff004f; padding: 14px 50px; border-radius: 6px;
    color: #fff; text-decoration: none; transition: 0.5s;
}

.btn:hover, .btn.btn2 { background: #ff004f; }

form input, form textarea {
    width: 100%; background: #262626; color: #fff;
    padding: 15px; margin: 15px 0; border: 0; border-radius: 6px;
}

/* --- 9. Footer --- */
.copyright {
    text-align: center; padding: 25px 0; background: #262626; margin-top: 20px;
}

/* --- 10. Responsive Design --- */
nav .fa-solid { 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 .fa-solid { display: block; font-size: 25px; }
    nav ul {
        background: #ff004f; position: fixed; top: 0; right: -200px;
        width: 200px; height: 100vh; padding-top: 50px; z-index: 2; transition: 0.5s;
    }
    nav ul li { display: block; margin: 25px; }
    .sub-title { font-size: 40px; }
    .about-col-1, .about-col-2, .contact-left, .contact-right { flex-basis: 100%; }

}

/* নাসিম ভাইয়ের স্পেশাল ফিক্স */
.contact-left .btn.btn2 {
    display: inline-block;
    margin: 40px 0 !important; 
}

#msg {
    color: #ff004f !important;
    margin-top: 10px;
    display: block;
    font-size: 16px;
    font-weight: 600;
}