/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #111827;
    --second-bg-color: #1F2937;
    --text-color: #F9FAFB;
    --main-color: #10B981; /* A vibrant green */
    --accent-color: #8b5cf6; /* A violet color for logo */
    --name-grad-start: #f472b6; /* Lighter Pink */
    --name-grad-end: #ec4899;   /* Deeper Pink */
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 3rem;
}

.heading span {
    color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    cursor: pointer;
}

.btn:hover {
    box-shadow: none;
    transform: scale(1.05);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky {
    background: var(--bg-color);
    border-bottom: .1rem solid rgba(0, 0, 0, .1);
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    cursor: default;
}
.logo img {
    height: 33px; /* আপনার লোগোর উচ্চতা প্রয়োজন অনুযায়ী পরিবর্তন করুন */
    width: auto;
    vertical-align: middle;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* Home Section */
.home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.home-content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.home-bio {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.home-img {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    text-align: center;
}

.home-content h3 {
    font-size: 3rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span.typing-text {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.2rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(45deg, var(--name-grad-start), var(--name-grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-bio p {
    font-size: 1.6rem;
}

.home-img img {
    width: 30vw;
    max-width: 400px;
    border-radius: 50%;
    animation: floatImage 4s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2.4rem); }
    100% { transform: translateY(0); }
}

@keyframes glow {
    from { box-shadow: 0 0 2rem var(--main-color); }
    to { box-shadow: 0 0 4rem var(--main-color), 0 0 1rem var(--text-color); }
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
    transform: translateY(-5px);
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 35vw;
    border-radius: 2rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/* Education Section */
.education {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.education-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.education-box {
    background: var(--second-bg-color);
    padding: 3rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
    flex: 1 1 30rem;
    max-width: 40rem;
}

.education-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.education-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.education-box h3 {
    font-size: 2.6rem;
    margin-top: 1.5rem;
}
.education-box h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: .5rem;
}
.education-box p {
    font-size: 1.6rem;
    margin-top: .5rem;
}


/* Skills Section */
.skills {
    background: var(--second-bg-color);
}

.skills-slider {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.skills-slider::before,
.skills-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10rem;
    height: 100%;
    z-index: 2;
}

.skills-slider::before {
    left: 0;
    background: linear-gradient(to left, rgba(31, 41, 55, 0), var(--second-bg-color));
}

.skills-slider::after {
    right: 0;
    background: linear-gradient(to right, rgba(31, 41, 55, 0), var(--second-bg-color));
}

.skills-container {
    display: flex;
    width: calc(32rem * 20);
    animation: slideSkills 40s linear infinite;
}

.skills-slider:hover .skills-container {
    animation-play-state: paused;
}

@keyframes slideSkills {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-32rem * 10)); }
}

.skill-box {
    flex-shrink: 0;
    width: 30rem;
    margin: 0 1rem;
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--second-bg-color);
    transition: .5s ease;
}

.skill-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.skill-box h3 {
    font-size: 2.2rem;
    margin-top: 1.5rem;
}

/* Contact Section */
.contact {
    background: var(--bg-color);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.contact form {
    flex: 2 1 50rem;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    border: .2rem solid transparent;
    transition: .5s ease;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    align-self: center;
}

.contact-details {
    flex: 1 1 30rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding-left: 5rem;
    border-left: .2rem solid var(--second-bg-color);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-item i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.detail-item a {
    font-size: 1.6rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.detail-item a:hover {
    color: var(--main-color);
}


/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 9%;
    background: var(--second-bg-color);
    position: relative;
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop {
    position: absolute;
    right: 9%;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* Responsive Design */
@media (max-width: 991px) {
    .header { padding: 2rem 3%; }
    section { padding: 10rem 3% 2rem; }
    .footer { padding: 2rem 3%; }
    .footer-iconTop { right: 3%; }

    .home {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    .home-content {
        order: 1;
    }
    .home-img {
        order: 2;
        margin: 3rem 0;
    }
    .home-bio {
        order: 3;
    }
    .home-bio .social-media {
        justify-content: center;
    }
    .home-img img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    
    /* --- এই অংশটি পরিবর্তন করুন --- */
    section {
        min-height: auto;
        padding: 10rem 3% 6rem;
    }
    
    .home {
        min-height: calc(100vh - 16rem);
    }
    /* ------------------------------ */

    .home-content h1 { font-size: 4.8rem; }
    .home-content h3 { font-size: 2.8rem; }
    .home-img img { width: 200px; height: 200px; }
    .about { flex-direction: column-reverse; text-align: center;}
    .about-content h2 { text-align: center; }
    .about-img img { width: 70vw; margin-top: 4rem; }
    .contact-wrapper { flex-direction: column; }
    .contact form .input-box input { width: 100%; }
    
    /* --- এই অংশটি পরিবর্তন করুন --- */
    .contact-details {
        border-left: none;
        padding: 4rem 2rem;
        align-items: center;
        width: 100%;
        background: var(--second-bg-color);
        border-radius: .8rem;
    }
    /* ------------------------------ */

    .footer { justify-content: center; }
    .footer-text { text-align: center; }
}

/* For ScrollReveal.js, elements are initially hidden */
.home-content, .home-img, 
.about-content, .about-img,
.education-container,
.skills .heading, .skills-slider,
.contact .heading, .contact-wrapper {
    visibility: hidden;
}




