:root {
    --royal-blue: #0F52BA;
    --dark-blue: #082d66;
    --light-blue: #e6edfa;
    --white: #ffffff;
    --accent: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; /* Applied Modern Font */
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-blue);
    overflow-x: hidden;
}

/* --- 3D Glassmorphism Header --- */
#main-header {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background: rgba(15, 82, 186, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
    padding: 15px 50px;
}

#main-header.scrolled { top: 0; }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    object-fit: cover;
}

.header-brand {
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.header-nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}
.header-nav a:hover { color: var(--accent); }

/* --- Hero Section --- */
#hero-banner {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, var(--white) 0%, #dbe7fb 100%);
    position: relative;
    overflow: hidden;
}

/* Floating Icons */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    color: rgba(15, 82, 186, 0.1);
    font-size: 5rem;
    animation: floatAnim 6s ease-in-out infinite;
}

.icon-1 { top: 15%; left: 5%; animation-delay: 0s; }
.icon-2 { top: 70%; left: 10%; animation-delay: 1s; }
.icon-3 { top: 20%; right: 10%; animation-delay: 2s; }
.icon-4 { top: 80%; right: 15%; animation-delay: 3s; font-size: 8rem; }
.icon-5 { top: 40%; left: 45%; animation-delay: 1.5s; font-size: 6rem; }
.icon-6 { top: 10%; left: 40%; animation-delay: 2.5s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

/* Tagline */
.top-tagline {
    position: absolute;
    top: 100px;
    right: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--royal-blue);
    text-transform: uppercase;
    letter-spacing: 4px;
    z-index: 2;
    background: rgba(255,255,255,0.7);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* SOLID 3D Center Text */
.center-brand-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
}

.huge-text-3d {
    font-size: 8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    letter-spacing: 5px;
    text-transform: uppercase;
    /* Blockbuster Solid 3D Effect */
    text-shadow: 
        1px 1px 0px var(--royal-blue),
        2px 2px 0px var(--royal-blue),
        3px 3px 0px var(--royal-blue),
        4px 4px 0px var(--royal-blue),
        5px 5px 0px var(--royal-blue),
        6px 6px 0px var(--royal-blue),
        7px 7px 0px var(--dark-blue),
        15px 15px 30px rgba(0,0,0,0.4);
}

.sub-text-3d {
    font-size: 4rem;
    font-weight: 900;
    color: var(--royal-blue);
    letter-spacing: 4px;
    margin-top: -10px;
    text-shadow: 
        1px 1px 0px #fff,
        2px 2px 0px #fff,
        4px 4px 15px rgba(0,0,0,0.2);
}

/* Bottom Left Photo Box */
.bottom-photo-box {
    position: absolute;
    bottom: -20px;
    left: 10%; /* ছবিটা একটু ডানদিকে সরানোর জন্য 5% থেকে 10% করা হলো */
    z-index: 3;
}

.my-3d-photo {
    height: 55vh; /* সাইজ ছোট করার জন্য 75vh থেকে কমানো হলো */
    max-height: 450px; /* ম্যাক্সিমাম সাইজ 600px থেকে কমিয়ে 450px করা হলো */
    object-fit: contain;
    /* ট্রান্সপারেন্ট ছবির ওপর থ্রিডি শ্যাডো */
    filter: drop-shadow(0px -10px 15px rgba(15, 82, 186, 0.4)) drop-shadow(15px 15px 25px rgba(0,0,0,0.5));
    transition: transform 0.4s ease;
}

.my-3d-photo:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Offers & Portfolios */
.offers-section {
    background: linear-gradient(90deg, var(--dark-blue), var(--royal-blue));
    color: var(--white);
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

#portfolio {
    padding: 80px 10%;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 40px;
    font-weight: 800;
}

.section-title span { color: var(--royal-blue); }

.tab-container { margin-bottom: 40px; }

.tab-btn {
    padding: 12px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: var(--white);
    border: 2px solid var(--royal-blue);
    color: var(--royal-blue);
    border-radius: 30px;
    margin: 0 10px;
    transition: 0.3s;
    font-weight: bold;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--royal-blue);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(15, 82, 186, 0.4);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.3d-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 5px solid var(--royal-blue);
}

.3d-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body { padding: 25px; }
.card-body h3 { color: var(--dark-blue); margin-bottom: 15px; font-size: 1.5rem; font-weight: 700; }
.card-body p { color: #555; margin-bottom: 25px; }

.3d-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(15, 82, 186, 0.2);
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
}

.live-btn {
    background-color: var(--white);
    border: 2px solid var(--royal-blue);
    color: var(--royal-blue);
}

.live-btn:hover { background-color: var(--royal-blue); color: var(--white); }

.source-btn {
    background: linear-gradient(45deg, var(--royal-blue), #1a6ff0);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(15, 82, 186, 0.3);
}

.source-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 82, 186, 0.5);
}

/* --- Language Switcher --- */
.lang-switch {
    display: inline-block;
    margin-left: 20px;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--white);
    font-weight: bold;
}
.lang-switch span {
    cursor: pointer;
    transition: 0.3s;
    padding: 0 5px;
}
.lang-switch span:hover { color: var(--accent); }
.active-lang { color: var(--accent) !important; text-decoration: underline; }

/* --- Scroll Instructions Next to Photo --- */
.bottom-photo-box {
    display: flex;
    align-items: flex-end; /* Align text with the bottom of the photo */
}
.scroll-instruction {
    background: rgba(15, 82, 186, 0.85);
    backdrop-filter: blur(5px);
    color: white;
    padding: 15px 25px;
    border-radius: 15px 15px 15px 0;
    max-width: 250px;
    margin-left: -20px; /* Overlap slightly with photo */
    margin-bottom: 50px; /* Adjust height */
    z-index: 4;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    border-left: 4px solid var(--accent);
    animation: fadeInRight 1.5s ease forwards;
    opacity: 0;
}
.bounce-arrow {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 1.5rem;
    color: var(--accent);
    animation: bounce 2s infinite;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* --- Floating Contact Buttons --- */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none; /* Can't click when hidden */
    transform: translateY(50px);
    transition: all 0.5s ease;
}
.floating-btns.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.float-btn:hover { transform: scale(1.1); }
.wa-btn { background: linear-gradient(135deg, #25D366, #128C7E); }
.call-btn { background: linear-gradient(135deg, #007bff, #0056b3); }