/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #e6f2ff, #f5e9d5);
    color: #4a3c2a;
    min-height: 100vh;
    transition: all 0.5s ease;
    overflow-x: hidden;
    position: relative;
}

/* ===== ANIMATED BACKGROUND CANVAS ===== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    z-index: -1;
    opacity: 0.2;
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 249, 242, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(139, 109, 76, 0.15);
    transition: all 0.5s ease;
    border-bottom: 1px solid rgba(187, 153, 119, 0.3);
}

.top-bar i, .home-btn {
    font-size: 1.5rem;
    color: #8b6d4b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.top-bar i:hover, .home-btn:hover {
    color: #d35400;
    transform: scale(1.1);
}

/* ===== MAIN CONTENT ===== */

.main-content {
    position: relative; /* star ke relative reference dibe */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 20px 20px;
}

/* ===== STAR ICON ===== */
#starIcon {
    position: absolute;
    top: -25px;     /* mainBox er uporte distance */
    left: -25px;    /* mainBox er left edge er uporte */
    width: 50px;    /* star size */
    height: 50px;
    z-index: 10;
    transition: all 0.5s ease;
}

/* ===== BOX STYLES ===== */
.box {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(139, 109, 76, 0.18);
    overflow: hidden;
    transition: all 0.5s ease;
    margin: 20px auto;
    border: 1px solid rgba(187, 153, 119, 0.2);
}

.box-head {
    background: linear-gradient(135deg, #8b6d4b, #6b4c2f);
    color: #fff8ee;
    padding: 20px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    transition: all 0.5s ease;
    border-bottom: 1px solid rgba(187, 153, 119, 0.3);
}

.box-body {
    padding: 40px;
}

/* ===== TYPOGRAPHY ===== */
.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 30px 0;
    background: linear-gradient(135deg, #8b6d4b, #6b4c2f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate;
    text-shadow: 2px 2px 4px rgba(139, 109, 76, 0.2);
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(139, 109, 76, 0.3); }
    100% { text-shadow: 0 0 30px rgba(219, 164, 110, 0.6); }
}

.highlight {
    color: #d35400;
    font-weight: 700;
    transition: all 0.5s ease;
}

/* ===== ROLES ===== */
.roles {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0 50px;
}

.roles span {
    background: linear-gradient(135deg, #8b6d4b, #6b4c2f);
    color: #fff8ee;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(139, 109, 76, 0.25);
    transition: all 0.3s ease;
    cursor: default;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(187, 153, 119, 0.3);
}

.roles span:nth-child(2) { animation-delay: 2s; }
.roles span:nth-child(3) { animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}


/* ===== MENU ICONS ===== */
.menu-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.icon-item {
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.icon-item:nth-child(2) { animation-delay: 0.2s; }
.icon-item:nth-child(3) { animation-delay: 0.4s; }
.icon-item:nth-child(4) { animation-delay: 0.6s; }
.icon-item:nth-child(5) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-icons i {
    font-size: 3rem;
    color: #8b6d4b;
    background: #fff8ee;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(139, 109, 76, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(187, 153, 119, 0.2);
}

.menu-icons i:hover {
    color: #fff8ee;
    background: linear-gradient(135deg, #8b6d4b, #6b4c2f);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(139, 109, 76, 0.35);
}

.icon-label {
    margin-top: 10px;
    font-weight: 500;
    color: #6b4c2f;
    transition: all 0.3s ease;
}

.icon-item:hover .icon-label {
    color: #d35400;
    transform: translateY(2px);
}

/* ===== HOVER STAR ===== */
.hover-star {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.5s ease;
    animation: spin 20s linear infinite;
    filter: drop-shadow(0 0 5px rgba(219, 164, 110, 0.5));
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hover-star:hover {
    transform: scale(1.5) rotate(180deg);
    filter: drop-shadow(0 0 20px #ffbb44);
}

/* ===== ABOUT PAGE STYLES ===== */
.sami-image {
    width: 250px;
    height: 250px;  /* height width er equal */
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #8b6d4b;
    box-shadow: 0 10px 30px rgba(139, 109, 76, 0.3);
    transition: all 0.5s ease;
    animation: float 4s ease-in-out infinite;
    margin-right: 10px; /* text er sathe gap thakbe */
}

.sami-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 109, 76, 0.4);
    border-color: #d35400;
}

.sami1234 {
    background: rgba(255, 251, 245, 0.85);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(139, 109, 76, 0.12);
    transition: all 0.3s ease;
    border-left: 4px solid #8b6d4b;
    color: #5a4632;
}

.sami1234:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 109, 76, 0.18);
    border-left-color: #d35400;
}

/* ===== PROGRESS BARS ===== */
.progress {
    height: 25px;
    border-radius: 15px;
    background: rgba(255, 251, 245, 0.7);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(139, 109, 76, 0.1);
    border: 1px solid rgba(187, 153, 119, 0.2);
}

.progress-bar {
    border-radius: 15px;
    font-weight: 600;
    text-align: center;
    line-height: 25px;
    transition: width 2s ease-in-out;
    box-shadow: 0 0 20px rgba(139, 109, 76, 0.25);
    background: linear-gradient(135deg, #8b6d4b, #6b4c2f);
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-container {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(139, 109, 76, 0.15);
    max-width: 500px;
    width: 90%;
    margin: 100px auto;
    border: 1px solid rgba(187, 153, 119, 0.25);
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #6b4c2f;
    font-weight: 700;
    font-size: 2.5rem;
}

.contact-container label {
    font-weight: 600;
    color: #5a4632;
    margin-bottom: 8px;
    display: block;
}

.contact-container input,
.contact-container textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 251, 245, 0.9);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 109, 76, 0.1);
    border: 1px solid rgba(187, 153, 119, 0.2);
    color: #5a4632;
}

.contact-container input:focus,
.contact-container textarea:focus {
    outline: none;
    box-shadow: 0 5px 20px rgba(139, 109, 76, 0.25);
    transform: translateY(-2px);
    border-color: #8b6d4b;
}

.contact-container button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b6d4b, #6b4c2f);
    color: #fff8ee;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(139, 109, 76, 0.25);
}

.contact-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 109, 76, 0.4);
    background: linear-gradient(135deg, #9c7d59, #7c5c3f);
}

.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(187, 153, 119, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #5a4632;
}

.info-item i {
    margin-right: 15px;
    color: #8b6d4b;
    font-size: 1.2rem;
}

/* ===== FAQ PAGE STYLES ===== */
.faq-container {
    padding: 100px 20px 50px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.faq-box {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(139, 109, 76, 0.15);
    max-width: 800px;
    width: 90%;
    border: 1px solid rgba(187, 153, 119, 0.25);
}

.faq-box h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #6b4c2f;
    font-weight: 700;
    font-size: 2.8rem;
}

.accordion-item {
    background: rgba(255, 251, 245, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(139, 109, 76, 0.12);
    overflow: hidden;
    border: 1px solid rgba(187, 153, 119, 0.2);
}

.accordion-button {
    background: rgba(255, 251, 245, 0.9);
    backdrop-filter: blur(10px);
    color: #5a4632;
    font-weight: 600;
    padding: 20px;
    border: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #8b6d4b, #6b4c2f);
    color: #fff8ee;
    box-shadow: none;
}

.accordion-button::after {
    filter: brightness(0.7);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background: rgba(255, 251, 245, 0.7);
    color: #5a4632;
    line-height: 1.6;
    padding: 20px;
}

/* ===== LINKS PAGE STYLES ===== */
.links-container {
    padding: 100px 20px 50px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.links-box {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(139, 109, 76, 0.15);
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(187, 153, 119, 0.25);
    text-align: center;
}

.links-box h2 {
    margin-bottom: 30px;
    color: #6b4c2f;
    font-weight: 700;
    font-size: 2.5rem;
}

.profile-card {
    margin-bottom: 30px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #8b6d4b;
    box-shadow: 0 10px 30px rgba(139, 109, 76, 0.25);
    margin-bottom: 15px;
}

.profile-card h3 {
    color: #5a4632;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-card p {
    color: #6b4c2f;
    font-size: 0.9rem;
}

.social-links {
    margin-bottom: 30px;
}

.link-item {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.link-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 251, 245, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    text-decoration: none;
    color: #5a4632;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 109, 76, 0.12);
    border: 1px solid rgba(187, 153, 119, 0.2);
}

.link-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 109, 76, 0.2);
}

.link-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.link-item:hover i {
    transform: scale(1.2);
}

/* Social platform colors */
.youtube a:hover { background: linear-gradient(135deg, #ff0000, #cc0000); color: white; }
.facebook a:hover { background: linear-gradient(135deg, #3b5998, #2d4373); color: white; }
.pinterest a:hover { background: linear-gradient(135deg, #bd081c, #9c0719); color: white; }
.twitter a:hover { background: linear-gradient(135deg, #1da1f2, #0d8bd9); color: white; }
.instagram a:hover { background: linear-gradient(135deg, #e4405f, #c13584); color: white; }
.github a:hover { background: linear-gradient(135deg, #333, #000); color: white; }
.linkedin a:hover { background: linear-gradient(135deg, #0077b5, #005582); color: white; }
.discord a:hover { background: linear-gradient(135deg, #7289da, #5a6eab); color: white; }

.social-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(187, 153, 119, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #8b6d4b;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b4c2f;
}

/* ===== WORK PAGE STYLES ===== */



/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #8b6d4b, #6b4c2f);
    color: #fff8ee;
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}


/* ===== MODAL STYLES ===== */
.modal-content {
    background: rgba(255, 251, 245, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(139, 109, 76, 0.25);
    border: 1px solid rgba(187, 153, 119, 0.3);
    max-width: 90vw;
    width: 800px;
    margin: 0 auto;
}

.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

.modal-header {
    border-bottom: 1px solid rgba(187, 153, 119, 0.3);
    padding: 20px;
}

.modal-title {
    color: #5a4632;
    font-weight: 600;
}

.modal-body {
    padding: 0;
}

#modalIframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: 0 0 20px 20px;
}

/* ===== DARK THEME ===== */
body.dark {
    background: #121212;
    color: #e0e0e0;
}

body.dark .top-bar {
    background: rgba(30, 30, 30, 0.9);
    color: #e0e0e0;
}

body.dark .top-bar i,
body.dark .home-btn {
    color: #e0e0e0;
}

body.dark .top-bar i:hover,
body.dark .home-btn:hover {
    color: #ff5722;
}

body.dark .box {
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.dark .box-head {
    background: linear-gradient(135deg, #333, #555);
}

body.dark .main-title {
    background: linear-gradient(135deg, #ff5722, #ff8a65);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark .highlight {
    color: #ff8a65;
}

body.dark .roles span {
    background: linear-gradient(135deg, #333, #555);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark .menu-icons i {
    background: #333;
    color: #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark .menu-icons i:hover {
    background: linear-gradient(135deg, #ff5722, #ff8a65);
    color: white;
}

body.dark .icon-label {
    color: #bbb;
}

body.dark .sami1234 {
    background: rgba(30, 30, 30, 0.8);
    color: #e0e0e0;
}

body.dark .contact-container,
body.dark .faq-box,
body.dark .links-box {
    background: rgba(30, 30, 30, 0.9);
    color: #e0e0e0;
}

body.dark .contact-container h2,
body.dark .faq-box h2,
body.dark .links-box h2 {
    color: #e0e0e0;
}

body.dark .contact-container input,
body.dark .contact-container textarea {
    background: rgba(40, 40, 40, 0.8);
    color: #e0e0e0;
}

body.dark .accordion-item {
    background: rgba(40, 40, 40, 0.8);
}

body.dark .accordion-button {
    background: rgba(40, 40, 40, 0.8);
    color: #e0e0e0;
}

body.dark .accordion-body {
    background: rgba(50, 50, 50, 0.8);
    color: #e0e0e0;
}

body.dark .project-card {
    background: rgba(40, 40, 40, 0.8);
}

body.dark .project-info h3 {
    color: #e0e0e0;
}

body.dark .project-info p {
    color: #bbb;
}

body.dark .modal-content {
    background: rgba(40, 40, 40, 0.95);
    color: #e0e0e0;
}

body.dark .modal-title {
    color: #e0e0e0;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .roles {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .menu-icons {
        gap: 20px;
    }
    
    .menu-icons i {
        font-size: 2.5rem;
        padding: 15px;
    }
    
    .box-body {
        padding: 20px;
    }
    
    .contact-container,
    .faq-box,
    .links-box {
        padding: 20px;
        margin: 80px auto;
    }
    
    .work-header h2 {
        font-size: 2.2rem;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        max-width: 95vw;
        margin: 1rem auto;
    }
    
    #modalIframe {
        min-height: 500px;
    }
    
    .star-container {
        top: 70px;
        right: 10px;
    }
    
    .hover-star {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 10px 20px;
    }
    
    .top-bar i,
    .home-btn {
        font-size: 1.2rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .menu-icons {
        gap: 15px;
    }
    
    .menu-icons i {
        font-size: 2rem;
        padding: 12px;
    }
    
    .icon-label {
        font-size: 0.8rem;
    }
    
    .contact-container h2,
    .faq-box h2,
    .links-box h2 {
        font-size: 2rem;
    }
    
    #modalIframe {
        min-height: 400px;
    }
    
    .sun {
        width: 60px;
        height: 60px;
        right: 50px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 251, 245, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b6d4b, #6b4c2f);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9c7d59, #7c5c3f);
}

body.dark ::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

body.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff5722, #ff8a65);
}
