/* RESET */
* { margin:0; padding:0; box-sizing:border-box; text-decoration:none; }

/* BODY */
body { 
    font-family:'Segoe UI', sans-serif; 
    background:#0a0a0a; 
    color:#e0e0e0; 
    overflow-x:hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0ff;
    color: #000;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    font-weight: bold;
    font-size: 14px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

body.light .skip-link {
    background: #0066ff;
    color: #fff;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* FOCUS VISIBLE */
:focus-visible {
    outline: 2px solid #0ff;
    outline-offset: 2px;
    border-radius: 4px;
}

body.light :focus-visible {
    outline-color: #0066ff;
}

::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #fff;
}

body.light ::selection {
    background: rgba(0, 102, 255, 0.3);
}

/* PARTICLES */
#particle-bg { 
    position: fixed; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    opacity: 0.6;
    pointer-events: none;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(0, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: #0ff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

body.light .back-to-top {
    background: rgba(0, 102, 255, 0.9);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

body.light .back-to-top:hover {
    background: #0066ff;
}

/* MOBILE MENU */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    color: #0ff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #0ff;
}

body.light .mobile-menu-btn {
    border-color: rgba(0, 102, 255, 0.4);
    color: #0066ff;
}

body.light .mobile-menu-btn:hover {
    background: rgba(0, 102, 255, 0.1);
}

/* LOGO */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-text {
    background: linear-gradient(45deg, #0f0, #0ff, #f0f, #0ff, #0f0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
    letter-spacing: 1px;
}

.logo-icon {
    color: #0ff;
    font-size: 2rem;
    animation: glowPulse 2s ease-in-out infinite;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

.logo:hover .logo-icon {
    transform: rotate(360deg);
}

.logo-dot {
    width: 6px;
    height: 6px;
    background: #0ff;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px #0ff;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-container:hover::after {
    opacity: 1;
}

/* NAVBAR */
.navbar { 
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
    padding:12px 60px; 
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    position:sticky; 
    top:0; 
    z-index:100; 
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
}

.navbar ul { 
    display:flex; 
    list-style:none; 
    align-items:center; 
    gap: 2px;
}

.navbar li { 
    margin-left:15px; 
    position:relative; 
}

.navbar a { 
    color:#e0e0e0; 
    font-weight:500; 
    text-decoration:none;
    padding: 6px 10px;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

/* REMOVED GREEN UNDERLINE FROM NAVIGATION LINKS */
.navbar a::before {
    display: none;
}

.navbar a:hover, 
.navbar a.active {
    color: #0ff;
}

/* DROPDOWN */
.dropbtn {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropbtn::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

.dropdown-menu { 
    display: none !important;
    position:absolute; 
    top:100%; 
    left:0; 
    background:rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(8px);
    padding:8px 0; 
    min-width:160px; 
    border-radius:8px; 
    z-index:200;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.15);
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.dropdown:hover > .dropdown-menu,
.dropdown-menu.active {
    display: block !important;
    transform: translateY(0);
}

.dropdown-menu li { 
    margin:0; 
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
}

.dropdown-menu li:nth-child(1) { animation-delay: 0.1s; }
.dropdown-menu li:nth-child(2) { animation-delay: 0.2s; }
.dropdown-menu li:nth-child(3) { animation-delay: 0.3s; }

.dropdown-menu a { 
    display:block; 
    padding:8px 15px; 
    color:#e0e0e0; 
    text-decoration:none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-menu a:hover { 
    background: rgba(0, 255, 0, 0.1); 
    color:#0ff;
    padding-left: 20px;
}

/* THEME TOGGLE */
#theme-toggle { 
    font-size:1rem; 
    padding:6px 12px; 
    cursor:pointer; 
    border:1px solid #0ff; 
    border-radius:20px; 
    background:transparent; 
    color:#0ff; 
    transition:all 0.3s ease; 
    margin-left:10px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#theme-toggle i {
    pointer-events: none;
}

#theme-toggle:hover { 
    background:#0ff; 
    color:#000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    border-color: #fff;
}

/* HERO SECTION */
.hero { 
    padding:60px 20px; 
    min-height: calc(100vh - 120px); 
    display:flex; 
    justify-content:center; 
    align-items:center;
    position: relative;
}

.hero-profile { 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    gap:60px; 
    flex-wrap:wrap;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

/* ===== IMAGE SECTION - DHAKA TOPI VISIBLE + NEON GLOW ===== */
.hero-left {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-left img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: center 15%;  /* Dhaka Topi visible */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobAnimation 8s ease-in-out infinite, float 4s ease-in-out infinite;
    /* STRONG NEON GLOW */
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 60px rgba(0, 255, 255, 0.4), 0 0 90px rgba(0, 255, 0, 0.2);
    border: 2px solid rgba(0, 255, 255, 0.7);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.hero-left img:hover {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.9), 0 0 80px rgba(0, 255, 255, 0.6), 0 0 120px rgba(0, 255, 0, 0.4);
    transform: scale(1.02);
    border-color: rgba(0, 255, 255, 1);
}

.hero-left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, rgba(0, 255, 255, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-left::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    border: 1.5px dashed rgba(0, 255, 255, 0.6);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: rotateBorder 12s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* TEXT SECTION */
.hero-right { 
    max-width: 500px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    text-align: left; 
    position: relative;
}

.main-name { 
    font-size: 3rem; 
    font-weight: 800;
    background: linear-gradient(45deg, #0f0, #0ff, #f0f, #0ff, #0f0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.role { 
    margin-top: 5px; 
    font-weight: 500; 
    font-size: 1.2rem; 
    animation: fadeInUp 1.2s ease forwards;
    color: #0ff;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* REMOVED GREEN UNDERLINE FROM ROLE TITLE */
.role::after {
    display: none;
}

.summary {
    margin-top: 20px;
    line-height: 1.7;
    color: #e0e0e0;
    animation: fadeInUp 1.5s ease forwards;
    font-size: 1rem;
    border-left: 2px solid #0ff;
    padding-left: 18px;
    opacity: 0.9;
}

.summary::before {
    content: '';
    position: absolute;
    left: -3px;
    top: -8px;
    font-size: 1.8rem;
    color: #0ff;
    opacity: 0.5;
}

.highlight {
    color: #0ff;
    font-weight: 600;
}

/* SOCIAL ICONS */
.social-icons { 
    margin-top: 25px; 
    display: flex; 
    gap: 12px; 
}

.social-icon { 
    width: 42px; 
    height: 42px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    overflow: hidden; 
    cursor: pointer; 
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.4);
}

.social-icon i { 
    font-size: 1.3rem; 
    color: #0ff; 
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    left: 0;
}

.social-icon span { 
    position: absolute;
    left: 45px;
    opacity: 0;
    color: #0ff; 
    font-weight: 500; 
    white-space: nowrap; 
    transition: opacity 0.3s ease, left 0.3s ease;
    font-size: 0.9rem;
    pointer-events: none;
}

.social-icon:hover { 
    width: 110px; 
    border-radius: 30px;
    border-color: #0ff;
    background: rgba(0, 255, 255, 0.1);
    justify-content: flex-start;
    padding-left: 12px;
}

.social-icon:hover i { 
    transform: scale(1.1);
    color: #fff;
}

.social-icon:hover span { 
    opacity: 1;
    left: 40px;
}

.social-icon:hover .fa-linkedin { color: #0077b5; }
.social-icon:hover .fa-github { color: #fff; }
.social-icon:hover .fa-twitter { color: #1da1f2; }
.social-icon:hover .fa-youtube { color: #ff0000; }

/* FOOTER */
footer { 
    padding: 20px 20px; 
    color: #e0e0e0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(0, 255, 255, 0.15);
    margin-top: auto;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-mini {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #0f0, #0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.footer-copyright i {
    color: #0ff;
    font-size: 0.8rem;
    animation: pulse 2s ease-in-out infinite;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #e0e0e0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.footer-link:hover {
    color: #0ff;
    opacity: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0ff, transparent);
}

/* ANIMATIONS */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 4px #0ff; }
    50% { text-shadow: 0 0 12px #0ff, 0 0 20px #0f0; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes blobAnimation {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 40% 60% 70% 30% / 40% 60% 30% 70%; }
    50% { border-radius: 30% 70% 50% 50% / 30% 50% 70% 50%; }
    75% { border-radius: 70% 30% 40% 60% / 50% 40% 60% 70%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes pulseGlow {
    0% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
}

@keyframes rotateBorder {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeInUp { 
    from{opacity:0; transform:translateY(15px);} 
    to{opacity:1; transform:translateY(0);} 
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes float { 
    0%,100%{transform:translateY(0);} 
    50%{transform:translateY(-8px);} 
}

/* DARK MODE (default) */
body.dark { background: #0a0a0a; color: #e0e0e0; }

/* LIGHT MODE */
body.light { background: #f5f5f5; color: #1a1a1a; }

body.light .navbar { background: rgba(245, 245, 245, 0.9); border-bottom-color: rgba(0, 0, 255, 0.2); }
body.light .navbar a { color: #1a1a1a; }
body.light .navbar a:hover, body.light .navbar a.active { color: #0066ff; }
/* No need for navbar a::before in light mode because it's removed globally */
body.light .logo-text { background: linear-gradient(45deg, #1a1a1a, #0066ff, #ff00ff, #1a1a1a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light .logo-icon { color: #0066ff; }
body.light .logo-dot { background: #0066ff; box-shadow: 0 0 8px #0066ff; }
body.light .main-name { background: linear-gradient(45deg, #1a1a1a, #0066ff, #ff00ff, #1a1a1a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light .role { color: #0066ff; }
/* No role::after in light mode because removed */
body.light .summary { color: #2a2a2a; border-left-color: #0066ff; }
body.light .summary::before { color: #0066ff; }
body.light .highlight { color: #0066ff; }
body.light .hero-profile { background: rgba(245, 245, 245, 0.3); border-color: rgba(0, 0, 255, 0.15); }
body.light .social-icon { border-color: rgba(0, 102, 255, 0.4); }
body.light .social-icon i { color: #0066ff; }
body.light .social-icon:hover { border-color: #0066ff; }
body.light .footer-link { color: #2a2a2a; }
body.light .footer-link:hover { color: #0066ff; }
body.light .footer-copyright { color: #2a2a2a; }
body.light .footer-copyright i { color: #0066ff; }
body.light footer { background: rgba(245, 245, 245, 0.9); border-top-color: rgba(0, 0, 255, 0.15); }
body.light #theme-toggle { border-color: #0066ff; color: #0066ff; box-shadow: 0 0 8px rgba(0, 102, 255, 0.2); }
body.light #theme-toggle:hover { background: #0066ff; color: #fff; }
body.light .dropdown-menu { background: rgba(245, 245, 245, 0.95); border-color: rgba(0, 102, 255, 0.2); }
body.light .dropdown-menu a { color: #1a1a1a; }
body.light .dropdown-menu a:hover { background: rgba(0, 102, 255, 0.1); color: #0066ff; }

/* RESPONSIVE */
@media (max-width: 768px) {
    /* Navbar stays as a single row: logo left, hamburger right */
    .navbar {
        padding: 12px 20px;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    .navbar-left { flex-shrink: 0; }
    .navbar-right {
        width: auto;
        display: flex;
        align-items: center;
        position: relative;
    }
    /* Show hamburger */
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    /* Hide nav links by default – slide in from right as a panel */
    #mainNav {
        display: block;
        position: fixed;
        top: 60px;
        right: -100%;
        width: 80%;
        max-width: 280px;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        border-left: 1px solid rgba(0, 255, 255, 0.3);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    body.light #mainNav { background: rgba(245, 245, 245, 0.98); border-left-color: rgba(0, 102, 255, 0.3); }
    #mainNav.active { right: 0; }
    /* Vertical menu layout inside the panel */
    #mainNav nav ul { flex-direction: column; padding: 20px; gap: 5px; align-items: flex-start; }
    .navbar li { margin-left: 0; width: 100%; }
    .navbar a, .dropbtn { display: block; width: 100%; padding: 10px 12px; }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 255, 255, 0.05);
        border: none;
        border-left: 2px solid #0ff;
        border-radius: 0;
        margin-top: 4px;
        margin-left: 10px;
        display: none !important;
        box-shadow: none;
    }
    .dropdown-menu.active { display: block !important; }
    .dropdown-menu li { opacity: 1; animation: none; }
    .dropbtn::after { float: right; }
    /* Hero */
    .hero-profile { gap: 30px; padding: 25px; }
    .hero-left { width: 200px; height: 200px; }
    .hero-left img { width: 180px; height: 180px; object-position: center 15%; }
    .hero-left::before { width: 210px; height: 210px; }
    .hero-left::after { width: 220px; height: 220px; }
    .main-name { font-size: 2.2rem; }
    .role { font-size: 1rem; }
    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-profile { padding: 20px; }
    .hero-left { width: 170px; height: 170px; }
    .hero-left img { width: 150px; height: 150px; object-position: center 15%; }
    .hero-left::before { width: 180px; height: 180px; }
    .hero-left::after { width: 190px; height: 190px; }
    .main-name { font-size: 1.8rem; }
    .role { font-size: 0.9rem; }
    .summary { font-size: 0.85rem; }
    .social-icon { width: 38px; height: 38px; }
    .back-to-top { bottom: 20px; right: 20px; width: 38px; height: 38px; font-size: 1rem; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #0ff; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0cc; }
body.light ::-webkit-scrollbar-track { background: #e0e0e0; }
body.light ::-webkit-scrollbar-thumb { background: #0066ff; }