:root {
    --primary-red: #00BFFF;
    --dark: #1a1a1a;
    --text: #4a4a4a;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body { background-color: #fff; overflow-x: hidden; }

.container { width: 92%; max-width: 1200px; margin: auto; }

/* --- Header UI Fix --- */
.header { background: #fff; padding: 12px 0; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; z-index: 1000; }
.nav-box { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo img { height: 38px; display: block; }

.nav-links ul { display: flex; list-style: none; gap: 30px; }
.nav-links ul li a { text-decoration: none; color: #333; font-weight: 600; font-size: 15px; transition: 0.3s; }
.nav-links ul li a:hover { color: var(--primary-red); }

.mobile-toggle { display: none; background: var(--primary-red); color: #fff; border: none; padding: 10px; border-radius: 8px; cursor: pointer; }

/* --- Modern Mobile Menu Fix --- */
@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        width: 100%; 
        position: absolute; 
        top: 65px; 
        left: 0; 
        background: rgba(255, 255, 255, 0.95); 
        backdrop-filter: blur(10px);
        padding: 20px 0; 
        box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
        border-bottom: 3px solid #0ea5e9; 
        z-index: 999;
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active { 
        display: block; 
        animation: slideDown 0.4s ease forwards;
    }

    .nav-links ul { 
        flex-direction: column; 
        gap: 5px; 
        text-align: left; 
        padding: 0 20px;
    }

    .nav-links ul li {
        list-style: none;
        width: 100%;
    }

    .nav-links ul li a { 
        color: #1e293b; 
        font-size: 16px; 
        font-weight: 600;
        display: flex;
        align-items: center;
        padding: 12px 20px;
        border-radius: 12px;
        text-decoration: none;
        transition: 0.2s;
    }

    .nav-links ul li a:hover { 
        background: #f0f9ff; 
        color: #0ea5e9;
        padding-left: 25px;
    }

.mobile-toggle { 
    display: none; 
    background: var(--primary-red) !important; 
    color: #ffffff !important; 
    border: none; 
    padding: 10px 12px; 
    border-radius: 10px; 
    cursor: pointer;
    font-size: 18px; 
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 191, 255, 0.2); 
}

.mobile-toggle:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .mobile-toggle { 
        display: flex; 
        align-items: center;
        justify-content: center;
    }
}

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* --- Hero Section & Animated Bubbles (Fixed to Sky Blue Theme) --- */
.hero-area { 
    position: relative; 
    padding: 120px 0; 
    /* ব্যাকগ্রাউন্ড এখন হালকা আকাশি গ্রেডিয়েন্ট */
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    overflow: hidden; 
    text-align: center;
}

.bubble-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.bubble { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; animation: move 15s infinite alternate ease-in-out; }

/* সব বাবল এখন আকাশি কালারের বিভিন্ন শেড */
.b-red { 
    width: 300px; height: 300px; 
    background: rgba(14, 165, 233, 0.15); /* আকাশি কালার */
    top: -50px; left: -50px; 
}

.b-green { 
    width: 350px; height: 350px; 
    background: rgba(0, 191, 255, 0.1); 
    bottom: -80px; right: -50px; 
    animation-delay: -4s; 
}

.b-blue { 
    width: 200px; height: 200px; 
    background: rgba(125, 211, 252, 0.15); 
    top: 20%; right: 10%; 
    animation-delay: -8s; 
}

.b-yellow { 
    width: 250px; height: 250px; 
    background: rgba(186, 230, 253, 0.1); 
    bottom: 10%; left: 5%; 
    animation-delay: -12s; 
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

.hero-inner { position: relative; z-index: 10; }

/* টাইটেল এবং টেক্সট কালার আপডেট */
.main-title { font-size: 40px; font-weight: 800; color: #0f172a; line-height: 1.2; margin-bottom: 20px; }

/* এখানে লাল টেক্সট ক্লাসের কালার আকাশি করে দেওয়া হয়েছে */
.red-text { color: #0ea5e9; } 

.sub-title { font-size: 18px; color: #64748b; max-width: 600px; margin: 0 auto 30px; }

/* --- Buttons Side-by-Side Fix --- */
.hero-btn-flex { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

.btn-hero {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    padding: 0 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-fill { background: var(--primary-red); color: #fff; border: 2px solid var(--primary-red); }
.btn-outline { background: transparent; color: var(--primary-red); border: 2px solid var(--primary-red); }

/* --- Mobile Specific Fix --- */
@media (max-width: 480px) {
    .main-title { font-size: 24px !important; }
    .sub-title { font-size: 14px; }
    .hero-btn-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px; }
    .btn-hero { padding: 0 5px !important; font-size: 12.5px !important; height: 44px; width: 100%; border-radius: 8px; }
}

/* --- Footer Styling --- */
.footer {
    background: #fcfdfe; 
    padding: 80px 0 0;
    border-top: 1px solid #e0f2f1;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo { height: 45px; margin-bottom: 20px; }
.footer-desc { color: #666; line-height: 1.6; margin-bottom: 25px; font-size: 15px; }

.footer-links h4, .footer-contact h4 {
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { text-decoration: none; color: #555; transition: 0.3s; font-size: 15px; }
.footer-links ul li a:hover { color: var(--primary-sky); padding-left: 5px; }

.footer-contact p { color: #555; margin-bottom: 15px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.footer-contact p i { color: var(--primary-sky); font-size: 18px; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e0f2f1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--primary-sky);
    text-decoration: none;
    transition: 0.3s;
}
.social-links a:hover { background: var(--primary-sky); color: #fff; transform: translateY(-5px); }

/* Footer Bottom Area */
.footer-bottom {
    background: #fff;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}
.footer-bottom p { color: #888; font-size: 14px; }

/* --- Mobile Responsive Fix --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 40px;
    }
    .footer-contact p { justify-content: center; }
    .social-links { justify-content: center; }
    .footer-logo { margin: 0 auto 20px; }
}

.footer {
    overflow: hidden;
}

.social-item {
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-item:hover {
    transform: translateY(-5px) rotate(8deg); 
    background: var(--primary-sky);
    color: #fff !important;
}

/* --- Services Section Styling --- */
.services-section {
    padding: 100px 0;
    padding-bottom: 10px !important;
    background-color: #ffffff;
    overflow: hidden;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.sky-text { 
    color: var(--primary-sky); 
}

.section-subtitle {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid #e1f5fe; 
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.05); 
}

.card-icon {
    width: 65px;
    height: 65px;
    background: #f0faff; 
    color: var(--primary-sky);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    margin-bottom: 25px;
    transition: 0.3s;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.card-icon svg { 
    width: 32px; 
    height: 32px; 
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
    z-index: -1;
    transition: 0.4s ease;
}

.service-card:hover::before { 
    height: 100%; 
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-sky);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.15);
}

.service-card:hover .card-icon {
    background: var(--primary-sky);
    color: #fff;
    transform: rotate(10deg);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3436;
}

.service-card p {
    color: #636e72;
    line-height: 1.7;
    font-size: 15px;
}

@media (max-width: 992px) {
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .services-section { padding: 60px 0; }
    .section-title { font-size: 30px; }
}

@media (max-width: 600px) {
    .services-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .service-card { padding: 30px 25px; }
}

.section-header {
    margin-top: 0 !important;      
    margin-bottom: 40px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-top: 0 !important;      
    margin-bottom: 10px !important; 
    line-height: 1.2;
}

.section-subtitle {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 1২px;
    color: #666;
    max-width: 600px;
}

.services-section {
    padding-top: 60px !important;   
    padding-bottom: 40px !important; 
}

@media (max-width: 768px) {
    .services-section {
        padding-top: 40px !important;
    }
    .section-header {
        margin-bottom: 30px !important;
    }
}

/* --- Skills Section Styling --- */
.skills-section {
    padding: 60px 0;
    background: #fcfdfe; 
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.05);
    border: 1px solid #e1f5fe;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-name i {
    color: var(--primary-sky);
    font-size: 20px;
}

.skill-percentage {
    color: var(--primary-sky);
    font-weight: 800;
}

/* Progress Bar Design */
.skill-progress-bg {
    width: 100%;
    height: 10px;
    background: #e1f5fe;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00BFFF, #00d2ff);
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}

/* Tech Stack Icons */
.tech-stack-wrapper {
    margin-top: 60px;
    text-align: center;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 40px;
    color: #b0bec5;
}

.tech-icons i {
    transition: 0.3s;
    cursor: pointer;
}

.tech-icons i:hover {
    color: var(--primary-sky);
    transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

    .popup-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.75);
        display: flex; justify-content: center; align-items: center;
        z-index: 9999;
        padding: 15px;
    }

    .popup-card {
        background: #fff;
        width: 100%;
        max-width: 650px;
        border-radius: 13px;
        position: relative;
        overflow: visible; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

    .popup-flex {
        display: flex;
        flex-wrap: wrap;
        border-radius: 12px;
        overflow: hidden; 
    }

    .popup-close-inner {
        position: absolute;
        top: -12px; 
        right: -12px;
        background: #ffffff; 
        border: 2px solid #ffffff; 
        color: #000000;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        cursor: pointer;
        font-size: 22px;
        font-weight: bold;
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        padding: 0;
        line-height: 0;
    }

    .popup-image-side {
        flex: 1;
        min-width: 250px;
        background: #f8f9fa;
    }

    .popup-image-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .popup-text-side {
        flex: 1.2;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .popup-title {
        font-size: 1rem;
        font-weight: 800;
        color: #333;
        margin-bottom: 10px;
    }

    .popup-message {
        font-size: 13px;
        color: #666;
        margin-bottom: 20px;
    }

    .popup-sky-btn {
        background: #0ea5e9;
        color: white;
        padding: 8px 15px;
        border-radius: 6px;
        text-decoration: none;
        display: inline-block;
        font-weight: 700;
        text-align: center;
        transition: 0.3s;
        border: none;
        width: fit-content;
    }

    .popup-sky-btn:hover {
        background: #0284c7;
        color: #fff;
    }

    @media (max-width: 600px) {
        .popup-flex { flex-direction: column; }
        .popup-image-side { height: 200px; }
        .popup-text-side { padding: 20px; text-align: center; }
        .popup-close-inner { top: 10px; right: 10px; } 
    }