/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    --bg-deep: #020617;
    --bg-card: #0f172a;
    --primary: #f97316;
    --accent: #22c55e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body { 
    font-family: 'Noto Sans Bengali', sans-serif;
    overflow: hidden !important; 
    background: var(--bg-deep);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
}

/* MASTER OVERLAY */
#master_overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background-color: var(--bg-deep) !important;
    z-index: 2147483647 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section_pad { padding: 5rem 0; }

.text_grad {
    background: linear-gradient(to right, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ANIMATIONS */
@keyframes float-img {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes bounce-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.anim_float { animation: float-img 6s ease-in-out infinite; }
.anim_badge { animation: bounce-badge 4s ease-in-out infinite; animation-delay: 1s; }

/* NAVBAR */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1rem 0;
}
.nav_inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); }
.nav_menu { display: none; gap: 1.5rem; }
.nav_link { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: 0.3s; }
.nav_link:hover { color: var(--primary); }
.btn_cta {
    background: var(--primary); color: white; padding: 0.5rem 1.2rem;
    border-radius: 50px; font-weight: 700; text-decoration: none; font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px; box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* HERO SECTION */
.hero { position: relative; padding: 4rem 0 6rem; overflow: hidden; }
.hero_grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero_content { text-align: center; }
.hero_badge {
    display: inline-block; background: rgba(249, 115, 22, 0.1); color: var(--primary);
    padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
    margin-bottom: 1rem; border: 1px solid rgba(249, 115, 22, 0.2);
}
.hero_title { font-size: 2.5rem; line-height: 1.2; font-weight: 800; color: white; margin-bottom: 1rem; }
.hero_desc { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; line-height: 1.6; }
.hero_btns { display: flex; justify-content: center; gap: 1rem; }

.hero_img_box { position: relative; display: flex; justify-content: center; margin-top: 1rem; }

.hero_img { 
    width: 280px; height: 280px; object-fit: cover; border-radius: 20px; 
    border: 4px solid rgba(255,255,255,0.05); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: filter 0.4s ease;
    cursor: pointer;
}
.hero_img:hover, .hero_img:active {
    filter: grayscale(100%);
}

.skill_badge {
    position: absolute; bottom: 20px; right: 10px;
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px);
    padding: 10px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 10;
}

/* STATS BAR */
.stats_bar { background: rgba(15, 23, 42, 0.5); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 2rem 0; }

.stats_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }

.stat_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.stat_item i { 
    font-size: 1.5rem; 
    color: var(--primary); 
    margin-bottom: 0.5rem; 
}

.stat_item h3 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0;
    min-height: 48px; 
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
}

.stat_item p { 
    color: var(--text-muted); 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin-top: auto; 
}

/* MAGIC AI SECTION */
.magic_box {
    background: #0f172a; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); max-width: 800px; margin: 0 auto; overflow: hidden;
}
.magic_header {
    background: #1e293b; padding: 12px 15px; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.magic_body { padding: 40px 30px; display: flex; flex-direction: column; gap: 20px; }

.chat_msg {
    padding: 15px 20px; border-radius: 8px; font-size: 1rem; max-width: 90%; line-height: 1.5;
    align-self: flex-start;
}
.msg_user { background: #334155; color: #e2e8f0; border-bottom-left-radius: 0; }
.msg_ai { background: #16a34a; color: white; border-bottom-left-radius: 0; }
.code_snip { font-family: monospace; background: rgba(0,0,0,0.2); padding: 2px 5px; border-radius: 4px; }

/* SERVICES SECTION */
.sec_title { font-size: 2rem; font-weight: 700; color: white; text-align: center; margin-bottom: 0.5rem; }
.sec_sub { color: var(--text-muted); text-align: center; display: block; margin-bottom: 3rem; }

.service_grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.service_card {
    background: var(--bg-card); padding: 2rem; border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
    display: flex; flex-direction: column; height: 100%;
}
.service_card:hover { border-color: var(--primary); transform: translateY(-5px); }

.svc_icon_box {
    width: 3.5rem; height: 3.5rem; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}
.icon_orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.icon_green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.icon_blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.svc_tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.8rem; padding-top: 1.5rem; }
.svc_pill {
    padding: 6px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px; color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
}

/* PORTFOLIO */
.portfolio_grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.pf_card {
    display: block; 
    position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 16/10;
    border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
    text-decoration: none; 
}

.pf_img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.pf_card:hover .pf_img { transform: scale(1.1); filter: grayscale(100%); }
.pf_overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
    opacity: 1; 
}
.pf_tag { background: var(--primary); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; align-self: flex-start; margin-bottom: 5px; }
.pf_name { color: white; font-size: 1.3rem; font-weight: 700; }

/* CONTACT FORM */
.contact_form {
    background: var(--bg-card); padding: 2rem; border-radius: 1rem;
    border-left: 4px solid var(--primary); max-width: 600px; margin: 0 auto;
}
.inp_field {
    width: 100%; padding: 0.9rem; background: #020617; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem; color: white; margin-bottom: 1rem;
}
.btn_submit {
    width: 100%; padding: 0.9rem; background: var(--accent); color: white; border: none;
    border-radius: 0.5rem; font-weight: 700; cursor: pointer;
}

/* DESKTOP RESPONSIVENESS */
@media (min-width: 768px) {
    .nav_menu { display: flex; }
    .hero_grid { grid-template-columns: 1fr 1fr; text-align: left; }
    .hero_content { text-align: left; }
    .hero_title { font-size: 3.5rem; }
    .hero_btns { justify-content: flex-start; }
    .hero_img { width: 380px; height: 380px; }
    .skill_badge { right: -20px; bottom: 40px; }
    .stats_grid { grid-template-columns: repeat(6, 1fr); } 
    .service_grid { grid-template-columns: repeat(3, 1fr); }
    .portfolio_grid { grid-template-columns: repeat(2, 1fr); }
}
