:root {
    --bg-color: #0b1120;
    --second-bg-color: #151e32;
    --text-color: #e2e8f0;
    --main-color: #00B0FF;
    /* Flutter Blue */
    --accent-color: #FFC107;
    /* Amber for contrast */
    --font-primary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--main-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--main-color);
}

.menu-btn {
    display: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 100px 10% 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
}

.hero-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.hero-content h1 {
    font-size: 50px;
    font-weight: 700;
    margin: 10px 0;
    color: white;
}

.hero-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #94a3b8;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    margin-right: 15px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--main-color);
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.primary-btn {
    background: var(--main-color);
    color: var(--bg-color);
}

.secondary-btn {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn:hover {
    transform: translateY(-3px);
}

/* Hero Image with Color Blob */
.hero-img {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--main-color), #00E676);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob 8s ease-in-out infinite;
    z-index: -1;
    opacity: 0.2;
}

.img-wrapper img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--second-bg-color);
}

@keyframes blob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Sections */
section {
    padding: 80px 10%;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    color: var(--main-color);
}

/* About */
.about {
    background: var(--second-bg-color);
}

.about-text h3 {
    color: var(--main-color);
    margin-bottom: 15px;
}

.info-list {
    margin-top: 15px;
}

.info-list ul li {
    margin-bottom: 10px;
    color: #94a3b8;
}

.info-list ul li strong {
    color: white;
    width: 100px;
    display: inline-block;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid transparent;
    transition: 0.3s;
}

.skill-card:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 40px;
    color: var(--main-color);
    margin-bottom: 15px;
}

/* Experience Timeline */
.experience {
    background: var(--bg-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--main-color);
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.circle-dot {
    position: absolute;
    left: -39px;
    top: 5px;
    height: 16px;
    width: 16px;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--main-color);
}

.timeline-date {
    font-size: 14px;
    color: var(--main-color);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 20px;
    color: white;
}

.timeline-location {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
    font-style: italic;
}

.timeline-text {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Blog Grid */
.blog {
    background: var(--second-bg-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-height: 580px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
    isolation: isolate;
}

.blog-grid.expanded {
    max-height: none;
}

/* Fade effect for overflow items */
.blog-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(21, 30, 50, 0) 0%, rgba(21, 30, 50, 1) 100%);
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.blog-grid.expanded::after {
    opacity: 0;
}

.blog-card {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    isolation: isolate;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 12px;
    color: var(--main-color);
}

.blog-title {
    font-size: 18px;
    margin: 10px 0;
    color: white;
}

.blog-desc {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.read-more {
    color: var(--main-color);
    font-size: 14px;
    font-weight: 600;
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-left {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 20px;
    color: var(--main-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--second-bg-color);
    padding: 30px;
    border-radius: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: var(--bg-color);
    border: 1px solid #334155;
    color: white;
    border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--main-color);
    outline: none;
}

footer {
    padding: 20px;
    text-align: center;
    background: #080d1a;
    font-size: 14px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 100px;
        gap: 50px;
    }

    .hero-content {
        width: 100%;
    }

    .social-links,
    .buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--second-bg-color);
        flex-direction: column;
        padding: 20px;
        display: none;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }
}

/* Published Apps Styles - Updated with Extra Padding for Hover */
.apps-section {
    background: var(--bg-color);
    overflow: hidden;
    /* উপরের প্যাডিং বাড়ানো হয়েছে যাতে হোভার করলে আইকন উপরে জায়গা পায় */
    padding: 100px 0 60px 0;
    position: relative;
}

.slider {
    margin: auto;
    overflow: visible;
    /* কার্ড যাতে উপরে কেটে না যায় */
    position: relative;
    width: 100%;
}

/* Infinity Scroll Animation */
.slide-track {
    display: flex;
    width: calc(200px * 12);
    animation: scroll 25s linear infinite;
}

.slide-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 6));
    }
}

/* Individual App Item */
.app-item {
    width: 180px;
    margin: 0 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* স্মুথ বাউন্স ইফেক্ট */
}

/* Hover Effect - এখন আর উপরে ঢুকে যাবে না */
.app-item:hover {
    transform: translateY(-25px);
    /* একটু বেশি উপরে উঠবে দেখতে ভালো লাগবে */
}

.app-item img {
    width: 95px;
    height: 95px;
    border-radius: 24px;
    margin-bottom: 15px;
    object-fit: cover;
    background: var(--second-bg-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.app-item:hover img {
    box-shadow: 0 15px 30px rgba(0, 176, 255, 0.4);
    /* Flutter Blue Glow */
    border-color: var(--main-color);
}

.app-item h3 {
    font-size: 16px;
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 160px;
    background: linear-gradient(to right, white 0%, white 70%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-item p {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Hero Image Professional Styling */
.hero-img {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* পিছনের কালার শেপ যা ঘুরবে */
.img-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--main-color), #00E676);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob 8s ease-in-out infinite;
    filter: blur(20px);
    /* সফট লুকের জন্য ব্লার */
    z-index: -1;
    opacity: 0.3;
}

.img-wrapper {
    width: 380px;
    height: 380px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 4s ease-in-out infinite;
    /* উপরে-নিচে ভাসার এনিমেশন */
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ছবি যাতে কেটে না যায় */
    filter: drop-shadow(0 0 20px rgba(0, 176, 255, 0.5));
    /* ছবির চারধারে মডার্ন গ্লো */
}

/* ভাসমান এনিমেশন */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* পিছনের শেপ এনিমেশন */
@keyframes blob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* মোবাইল রেসপন্সিভ */
@media (max-width: 768px) {
    .hero-img {
        width: 300px;
        height: 300px;
    }

    .img-wrapper {
        width: 250px;
        height: 250px;
    }
}