
/* ============================================================
   HASIB RAIHAN — Portfolio Stylesheet
   Developer   : Hasib Raihan
   Role        : Web Developer & Digital Marketing Specialist
   Location    : Joypurhat, Rajshahi, Bangladesh
   GitHub      : https://github.com/R41H4N0080/
   Website     : https://hasibraihan.vercel.app/
   © 2025 Hasib Raihan. All Rights Reserved.
   Unauthorized copying or redistribution is prohibited.
============================================================ */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Custom Properties / Variables ===== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --normal: #e2e8f0;
    --black: #0f0f23;
    --bg: #020617;
    --bg-card: #0f172a;
    --danger: #f43f5e;
    --border: 0.1rem solid rgba(139, 92, 246, 0.2);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --glow: 0 0 30px rgba(99, 102, 241, 0.3);

    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;
}

/* Universal selector  */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    outline-offset: none;
    border: none;
    box-sizing: border-box;
    text-decoration: none;
    text-transform: capitalize;
    list-style: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-behavior: smooth;
}

/* Custom Scroll bar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 10px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
}

body {
    line-height: 1.7;
    color: var(--normal);
    background-color: var(--bg);
    
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.3rem;
}

a {
    color: var(--normal);
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: #ffffff;
    padding: 0.8rem 2.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-light);
}

.btn:active {
    transform: translateY(-1px) scale(1);
}

.border_bottom {
    text-align: center;
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.border_bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 10px;
}

nav {
    /* ডিফল্ট (স্ক্রল না হলে): background এর অস্বচ্ছতা ০.৮ থেকে কমিয়ে ০.১ করা হয়েছে (খুব স্বচ্ছ) */
    background: rgba(15, 15, 35, 0.1); 
    
    /* ব্লার ইফেক্ট ২০px থেকে কমিয়ে ১০px করা হয়েছে (হালকা ঝাপসা) */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    width: 100vw;
    height: 5rem;
    position: fixed;
    top: 0;
    z-index: 15;
}

.window-scroll{
    /* স্ক্রল করার পর: background এর অস্বচ্ছতা ০.৯5 থেকে কমিয়ে ০.৭ করা হয়েছে (কম স্বচ্ছ) */
    background: rgba(2, 6, 23, 0.7);
    
    /* ব্লার ইফেক্ট ২৫px থেকে বাড়িয়ে ৪০px করা হয়েছে (বেশি ঝাপসা) */
    backdrop-filter: blur(40px);
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav_container {
    display: flex;
    height: 100%;
    justify-content: space-between;
    align-items: center;
}

.nav_container span {
    color: var(--primary);
}

.nav_container h4 {
    font-size: 1.8rem;
}

.nav_container h4::first-letter {
    font-size: 2rem;
}

.nav_container h4:hover {
    color: var(--primary);
    transform: rotateX(360deg);
    transition-duration: 1.2s;
}

nav button {
    display: none;
}

.nav_menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav_menu a {
    font-size: 1rem;
}

.nav_menu a {
    position: relative;
}

.nav_menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav_menu a:hover {
    color: var(--primary-light);
}

.nav_menu a:hover::after {
    width: 100%;
}

/* ======HEADER======= */

header {
    position: relative;
    top: 5rem;
    overflow: visible;
    margin-bottom: 5rem;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--black) 0%, var(--bg-card) 100%);
}

.header_container {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.header_left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header_left .header_left_img {
    position: relative;
    width: 320px;
    height: 320px;
    flex-shrink: 0;
}

.header_left .header_left_img::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient);
    z-index: 0;
    animation: headerImgGlow 3s ease-in-out infinite;
}

@keyframes headerImgGlow {
    0%, 100% { opacity: 0.6; filter: blur(8px); }
    50%       { opacity: 1;   filter: blur(14px); }
}

.header_left .header_left_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(99, 102, 241, 0.3);
}

.header_right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* — Greeting line — */
.header_right .text-1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

/* — Name — */
.header_right .text-2 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
}

/* — Typing row — */
.header_right .text-3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.8rem;
    flex-wrap: nowrap;
}

.header_right .text-3-prefix {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.65);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

/* — Advanced typing chip — */
.header_right .typing-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.08);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    overflow: hidden;
    flex-shrink: 0;
    min-width: 200px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.12);
}

.header_right .typing-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.06) 50%, transparent 100%);
    animation: chipShimmer 2.5s ease-in-out infinite;
}

@keyframes chipShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header_right .typing-chip .typing {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.header_right .typing {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======ABOUT ME======= */

.about {
    text-align: center;
}

.about_container {
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.about_container .about-text {
    max-width: 100%;
    text-align: left;
    line-height: 1.8rem;
    letter-spacing: 0.5px;
    padding-bottom: 2.5rem;
    color: var(--normal);
    word-spacing: normal;
}

.about_container .about-text p {
    margin-bottom: 0.8rem;
}

.about_container .about-text .text {
    margin-bottom: 1rem;
}

.about_container .about-text .text span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ======SERVICES======= */
.services {
    text-align: center;
    padding: 4rem 0 2rem;
}

.services_container .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.services_container .cards .card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.services_container .cards .card:active {
    transform: scale(0.96);
}

/* Prevent card press effect when clicking a link/button inside — Hasib Raihan */
.services_container .cards .card:has(a:active):active,
.services_container .cards .card:has(button:active):active,
.project-card:has(a:active):active,
.project-card:has(button:active):active {
    transform: none;
    animation: none;
}

.services_container .cards .card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -2;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.services_container .cards .card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 18px;
    z-index: -1;
}

.services_container .cards .card:hover::before {
    opacity: 1;
}

.services_container .cards .card:hover {
    transform: translateY(-10px) scale(1.02);
    animation: cardAdvancedFloat 3s ease-in-out infinite;
    filter: brightness(1.15);
    z-index: 10;
}

@keyframes cardAdvancedFloat {
    0%, 100% {
        transform: translateY(-10px) scale(1.02);
    }
    50% {
        transform: translateY(-14px) scale(1.03);
    }
}

.sbox i {
    font-size: 2.5rem;
    width: 5rem;
    height: 5rem;
    color: #ffffff;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.services_container .cards .card:hover .sbox i {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: var(--glow);
}

.sbox h3 {
    font-size: 1.4rem;
    color: var(--normal);
    margin-bottom: 1rem;
    font-weight: 600;
}

.sbox p {
    margin: 1.5rem 0;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.7;
}

.sbox a {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    background: var(--gradient);
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
}

.sbox a:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* ======SKILLS======= */
.skills .new {
    text-align: center;
}

.skills_container {
    display: flex;
    margin: auto;
    position: relative;
    flex-direction: column;
    padding: 2.5rem 2rem;
    max-width: 45rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.skills_container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -2;
}

.skills_container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 18px;
    z-index: -1;
}

.skills_container .bar {
    margin: 1.2rem 0;
}

.skills_container .bar:first-child {
    margin-top: 0rem;
}

.skills_container .bar .info {
    margin-bottom: 0.3rem;
}

.skills_container .bar .info span {
    font-weight: 500;
    font-size: 1rem;
    opacity: 0;
    animation: showText 0.5s 1s linear forwards;
}

@keyframes showText {
    100% {
        opacity: 1;
    }
}

.skills_container .bar .progress-line {
    height: 12px;
    width: 100%;
    background-color: rgba(139, 92, 246, 0.1);
    position: relative;
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}

@keyframes animate {
    100% {
        transform: scaleX(1);
    }
}

.bar .progress-line span {
    height: 100%;
    position: absolute;
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--gradient);
    box-shadow: var(--glow);
    animation: animate 1s 3s cubic-bezier(1, 0, 0.5, 1) forwards;
}

.bar .progress-line.html span {
    width: 90%;
}

.bar .progress-line.css span {
    width: 60%;
}

.bar .progress-line.jquery span {
    width: 85%;
}

.bar .progress-line.python span {
    width: 50%;
}

.bar .progress-line.mysql span {
    width: 100%;
}

.progress-line span::before {
    position: absolute;
    content: "";
    top: -0.6rem;
    right: 0;
    height: 0;
    width: 0;
    border: 0.4rem solid transparent;
    border-bottom-width: 0;
    border-right-width: 0;
    border-top-color: var(--primary);
    opacity: 0;
    animation: showText2 0.5s 1s linear forwards;
}

.progress-line span::after {
    position: absolute;
    top: -2rem;
    right: 0;
    font-weight: 600;
    background: var(--gradient);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 50px;
    opacity: 0;
    animation: showText2 0.5s 1s linear forwards;
    box-shadow: var(--glow);
}


@keyframes showText2 {
    100% {
        opacity: 1;
    }
}

.progress-line.html span::after {
    content: "90%";
}

.progress-line.css span::after {
    content: "60%";
}

.progress-line.jquery span::after {
    content: "85%";
}

.progress-line.python span::after {
    content: "50%";
}

.progress-line.mysql span::after {
    content: "100%";
}

/* =======PORTFOLIO======= */

.portfolio_container {
    text-align: center;
    margin-top: 3rem;
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    border-radius: 30px;
    padding: 2rem;
    position: relative;
}

.gallery::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 30px;
    z-index: -2;
}

.gallery::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 28px;
    z-index: -1;
}

.gallery a {
    height: 15rem;
    width: 20rem;
    margin: 1.2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    position: relative;
    transition: all 0.4s ease;
}

.gallery a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery a:hover::before {
    opacity: 0.3;
}

.gallery a:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery a:hover img {
    transform: scale(1.1);
}

/* ======COURSES======= */
.courses {
    text-align: center;
    margin-top: 3rem;
}

.courses_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course {
    text-align: center;
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.course::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -2;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.course::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 18px;
    z-index: -1;
}

.course:hover::before {
    opacity: 1;
}

.course:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

.course_info {
    padding: 2rem;
}

.course_info p {
    margin: 1.2rem 0 2rem;
    font-size: 0.9rem;
}

/* ======FAQs SECTION======= */
.faqs {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.faqs > article.faq {
    max-width: 760px;
    margin: 0 auto 1rem;
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    color: var(--normal);
    text-align: left;
    cursor: pointer;
    border-radius: 18px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--bg-card);
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 2px 20px rgba(99, 102, 241, 0.05);
    overflow: hidden;
}

.faqs > article.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.faqs > article.faq:hover::before,
.faqs > article.faq.open::before {
    opacity: 1;
}

.faqs > article.faq:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(25, 30, 55, 1) 100%);
}

.faqs > article.faq.open {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.12);
    background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(20, 28, 52, 1) 100%);
}

.faqs > article.faq:active {
    transform: scale(0.985);
}

.faq_icon {
    align-self: flex-start;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    font-size: 0.9rem;
    color: #fff;
    margin-top: 0.1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.faq:hover .faq_icon {
    transform: rotate(45deg) scale(1.12);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.55), 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.faq.open .faq_icon {
    transform: rotate(45deg);
    background: var(--gradient);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.question_ans {
    flex: 1;
    min-width: 0;
}

.faq h4 {
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--normal);
    letter-spacing: 0.01em;
}

.faq.open h4 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq p {
    margin-top: 0.8rem;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.75;
    font-size: 0.95rem;
    display: none;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.faq.open p {
    display: block;
    animation: faqOpen 0.3s ease forwards;
}

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

/* ======Footer SECTION======= */
footer {
    padding-top: 5rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--black) 100%);
    font-size: 0.9rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}

.footer_container>div h4 {
    margin-bottom: 1.2rem;
}

.footer_1 p {
    margin: 0 0 2rem;
}

footer ul li {
    margin-bottom: 0.7rem;
}

footer ul li a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.footer_4 .mail {
    text-transform: lowercase;
}

.footer_4 .mail a {
    color: var(--normal) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.footer_4 .mail a:hover {
    color: var(--primary-light) !important;
    text-decoration: underline;
}

/* ===== Motivation Quote — Hasib Raihan ===== */
.motivation-quote {
    position: relative;
    margin: 1rem 0 1.5rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.open-quote {
    font-family: 'Georgia', 'Playfair Display', serif;
    font-size: 3.8rem;
    line-height: 0;
    vertical-align: -0.55rem;
    color: var(--primary);
    opacity: 0.75;
    font-weight: 900;
    margin-right: 0.15rem;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
    display: inline;
}

.close-quote {
    font-family: 'Georgia', 'Playfair Display', serif;
    font-size: 3.2rem;
    line-height: 0.8;
    color: var(--primary);
    opacity: 0.75;
    font-weight: 900;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
    display: block;
    text-align: right;
    margin-top: -0.6rem;
}

.quote-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(226, 232, 240, 0.82);
    letter-spacing: 0.02em;
    padding: 0;
    text-transform: none;
    font-family: 'Georgia', serif;
    display: block;
}

.quote-attribution {
    display: block;
    margin-top: 0.7rem;
    font-style: normal;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary-light);
    letter-spacing: 0.06em;
    text-transform: none;
    opacity: 0.9;
    text-align: right;
    padding-right: 0.4rem;
}

.footer_social {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* ===== Footer Copyright — Hasib Raihan ===== */
.footer_copyright {
    text-align: center;
    margin-top: 4rem;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer_copyright .copyright-main {
    display: block;
    color: var(--normal);
    font-size: 0.88rem;
    letter-spacing: 0.03em;
}

.footer_copyright .copyright-main a {
    color: var(--primary-light);
    font-weight: 600;
    transition: color 0.3s ease;
    text-transform: none;
}

.footer_copyright .copyright-main a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer_copyright .copyright-meta {
    display: block;
    color: rgba(226, 232, 240, 0.5);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* ======MEDIA QUERIES (TABLETS)======= */

@media screen and (max-width:1024px) {
    .container {
        width: var(--container-width-md);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    header {
        padding: 3rem 0;
        margin-bottom: 4rem;
    }

    .header_left .header_left_img {
        width: 240px;
        height: 240px;
    }

    .header_right .text-1 {
        font-size: 0.9rem;
    }

    .header_right .text-2 {
        font-size: 2.2rem;
    }

    .header_right .text-3 {
        gap: 0.5rem;
        margin: 0 0 1.4rem;
    }

    .header_right .text-3-prefix {
        font-size: 1rem;
    }

    .header_right .typing-chip {
        min-width: 180px;
    }

    .header_right .typing-chip .typing {
        font-size: 1.15rem;
    }

    .btn {
        padding: 0.6rem 1.8rem;
    }

    /* ======NAVBAR OPEN======= */
    nav button {
        display: inline-block;
        background: transparent;
        font-size: 1.8rem;
        color: var(--normal);
        cursor: pointer;
    }

    nav button#close-menu-btn {
        display: none;
    }

    .nav_menu {
        position: fixed;
        top: 5rem;
        right: 5%;
        gap: 0;
        height: fit-content;
        width: 18rem;
        flex-direction: column;
        display: none;
        /* we will display with js  */
    }

    .nav_menu li{
        width: 100%;
        height: 3.5rem;
        animation: advancedNavSlide 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        transform-origin: right center;
        opacity: 0;
        perspective: 1000px;
    }
    .nav_menu li a{
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
        backdrop-filter: blur(10px);
        width: 100%;
        height: 100%;
        display: grid;
        color: #ffffff;
        place-items: center;
        position: relative;
        overflow: hidden;
        border-radius: 16px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    
    .nav_menu li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s ease;
    }
    
    .nav_menu li a:hover::before {
        left: 100%;
    }
    
    .nav_menu li a::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav_menu li a:hover::after {
        opacity: 1;
    }
    
    .nav_menu li a:hover {
        transform: translateX(-5px);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .nav_menu li:nth-child(1){
        animation-delay: 0.05s;
    }
    .nav_menu li:nth-child(2){
        animation-delay: 0.1s;
    }
    .nav_menu li:nth-child(3){
        animation-delay: 0.15s;
    }
    .nav_menu li:nth-child(4){
        animation-delay: 0.2s;
    }
    .nav_menu li:nth-child(5){
        animation-delay: 0.25s;
    }
    .nav_menu li:nth-child(6){
        animation-delay: 0.3s;
    }
    .nav_menu li:nth-child(7){
        animation-delay: 0.35s;
    }
    
    @keyframes advancedNavSlide {
        0%{
            transform: translateX(150px) rotateZ(45deg) scale(0);
            opacity: 0;
        }
        60%{
            transform: translateX(-15px) rotateZ(-8deg) scale(1.08);
            opacity: 1;
        }
        100%{
            transform: translateX(0) rotateZ(0) scale(1);
            opacity: 1;
        }
    }

    .services_container .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .services_container .cards .card {
        padding: 1.5rem 1rem;
        margin: 0;
    }

    .services_container .cards .card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    .services_container .cards .card:has(a:active):active,
    .services_container .cards .card:has(button:active):active,
    .project-card:has(a:active):active,
    .project-card:has(button:active):active {
        transform: none;
        animation: none;
    }
    .gallery a {
        height: 14rem;
        width: 18rem;
        margin: 1.2rem;
        border-radius: 0.3rem;
        overflow: hidden;
        box-shadow: 0 3px 5px var(--primary);
    }

    .courses_container{
        grid-template-columns: repeat(2,1fr);
    }
    
    .faqs_container{
        grid-template-columns: 1fr;
    }
    .faq{
        padding: 1.5rem;
    }
    .footer_container{
        grid-template-columns: repeat(2,1fr);
    }
}

/* ========MEDIA QUERIES (MOBILE)======== */
@media screen and (max-width:600px) {
    .container{
        width: var(--container-width-sm);
    }    
    .nav_menu{
        right: 3%;
    }

    /* Header — mobile stacked layout */
    header {
        padding: 2rem 0 3rem;
        margin-bottom: 3rem;
    }

    .header_container {
        flex-direction: column;
        align-items: center;
        gap: 1.8rem;
        text-align: center;
    }

    .header_left {
        width: 100%;
        justify-content: center;
        order: 1;
    }

    .header_left .header_left_img {
        width: 180px;
        height: 180px;
    }

    .header_right {
        width: 100%;
        align-items: center;
        order: 2;
    }

    .header_right .text-1 {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    .header_right .text-2 {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .header_right .text-3 {
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        margin: 0 0 1.4rem;
        width: 100%;
    }

    .header_right .text-3-prefix {
        font-size: 0.9rem;
    }

    .header_right .typing-chip {
        min-width: 0;
        width: auto;
        max-width: 90%;
        padding: 5px 16px;
        border-radius: 50px;
        justify-content: center;
    }

    .header_right .typing-chip .typing {
        font-size: 1rem;
        white-space: nowrap;
    }

    .header_right .btn {
        align-self: center;
    }

    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .about_container{
        flex-direction: column;
    }
    .services {
        padding: 2.5rem 0 1rem;
    }

    .services_container .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services_container .cards .card {
        padding: 1.5rem 1.2rem;
        margin: 0 0.4rem;
    }

    .services_container .cards .card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    .services_container .cards .card:has(a:active):active,
    .services_container .cards .card:has(button:active):active,
    .project-card:has(a:active):active,
    .project-card:has(button:active):active {
        transform: none;
        animation: none;
    }

    .faqs > article.faq {
        padding: 1.2rem 1.2rem;
        gap: 0.9rem;
        margin: 0 0.4rem 1rem;
    }

    .gallery a{
        width: 25rem;
    }

    .courses_container{
        grid-template-columns: 1fr;
        width: 80%;
    }

    .courses_container .course{
        margin-bottom: 1rem;
    }

    .footer_container{
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer_social{
        justify-content: center;
    }
}

/* ========New Pre-loader Start======== */

#preloader {
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Floating particles */
.pl-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pl-particle {
    position: absolute;
    border-radius: 50%;
    background: #5b5ef4;
    opacity: 0;
    animation: plFloatParticle linear infinite;
}

@keyframes plFloatParticle {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    8%   { opacity: 0.75; }
    85%  { opacity: 0.35; }
    100% { opacity: 0; transform: translateY(-120vh) scale(0.2); }
}

/* Loader main wrapper */
.loader-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    transform: translateY(-30px);
}

/* Code symbol container */
.code-symbol {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    margin-bottom: 52px;
}

/* Bracket & slash parts */
.bracket-left,
.bracket-right,
.slash {
    font-size: 100px;
    font-weight: 900;
    line-height: 1;
    display: inline-block;
    position: relative;
    background: linear-gradient(145deg, #818cf8 0%, #6366f1 45%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(99, 102, 241, 0.6));
}

/* bracket-left flies in from left */
.bracket-left {
    opacity: 0;
    transform: translateX(-280px) scale(0.5);
    animation: plFlyLeft 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes plFlyLeft {
    0%   { opacity: 0; transform: translateX(-280px) scale(0.5); }
    70%  { opacity: 1; transform: translateX(6px) scale(1.02); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* slash drops from top */
.slash {
    opacity: 0;
    transform: translateY(-260px) scale(0.5);
    animation: plFlyTop 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
    margin: 0 4px;
}

@keyframes plFlyTop {
    0%   { opacity: 0; transform: translateY(-260px) scale(0.5); }
    70%  { opacity: 1; transform: translateY(6px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* bracket-right flies in from right */
.bracket-right {
    opacity: 0;
    transform: translateX(280px) scale(0.5);
    animation: plFlyRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes plFlyRight {
    0%   { opacity: 0; transform: translateX(280px) scale(0.5); }
    70%  { opacity: 1; transform: translateX(-6px) scale(1.02); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Impact ring flash */
.impact-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.7);
    opacity: 0;
    animation: plImpactRing 0.5s ease-out 1.05s forwards;
}

.impact-ring-2 {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.4);
    opacity: 0;
    animation: plImpactRing 0.7s ease-out 1.1s forwards;
}

@keyframes plImpactRing {
    0%   { opacity: 0.9; transform: scale(0.3); }
    100% { opacity: 0;   transform: scale(2.2); }
}

/* Glow burst */
.glow-burst {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, transparent 70%);
    opacity: 0;
    animation: plGlowBurst 0.6s ease-out 1.0s forwards;
}

@keyframes plGlowBurst {
    0%   { opacity: 0; transform: scale(0.5); }
    40%  { opacity: 1; }
    100% { opacity: 0; transform: scale(2.5); }
}

/* Assembled idle breathing glow */
.code-symbol.assembled .bracket-left,
.code-symbol.assembled .slash,
.code-symbol.assembled .bracket-right {
    animation: plIdleGlow 3s ease-in-out 1.2s infinite;
}

@keyframes plIdleGlow {
    0%, 100% { filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.5)); }
    50%       { filter: drop-shadow(0 0 28px rgba(99, 102, 241, 0.9)); }
}

/* HASIB text */
.hasib-text {
    display: flex;
    gap: 0;
    overflow: hidden;
    margin-bottom: 22px;
}

.hasib-letter {
    font-size: 52px;
    font-weight: 900;
    color: #f0ece3;
    letter-spacing: 8px;
    opacity: 0;
    transform: translateY(60px);
    display: inline-block;
    text-shadow: 0 0 30px rgba(240, 236, 227, 0.15);
}

.hasib-letter:nth-child(1) { animation: plLetterRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards; }
.hasib-letter:nth-child(2) { animation: plLetterRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards; }
.hasib-letter:nth-child(3) { animation: plLetterRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.45s forwards; }
.hasib-letter:nth-child(4) { animation: plLetterRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.55s forwards; }
.hasib-letter:nth-child(5) { animation: plLetterRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.65s forwards; }

@keyframes plLetterRise {
    0%   { opacity: 0; transform: translateY(60px); }
    60%  { opacity: 1; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Tagline */
.tagline {
    font-size: 12px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    opacity: 0;
    animation: plFadeUp 0.6s ease 2.0s forwards;
    margin-bottom: 14px;
}

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

/* Progress bar track */
.progress-track {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
    opacity: 0;
    animation: plFadeUp 0.4s ease 2.1s forwards;
}

/* Progress fill */
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #818cf8, #6366f1);
    background-size: 200% 100%;
    border-radius: 999px;
    animation: plProgressLoad 1.8s ease 2.2s forwards, plShimmer 1.5s linear 2.2s infinite;
}

@keyframes plProgressLoad {
    0%   { width: 0%; }
    30%  { width: 40%; }
    60%  { width: 70%; }
    85%  { width: 88%; }
    100% { width: 100%; }
}

@keyframes plShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========New Pre-loader End======== */


/* === Data counter start === */


@import url(https://fonts.googleapis.com/css?family=Lato:400,700|Montserrat:400,700);
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css);



/*/ start count stats /*/

section#counter-stats {
        display: flex;
        justify-content: center;
}

.stats {
  text-align: center;
  font-size: 35px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.stats .fa {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 60px;
}

/*/ end count stats /*/

/*/ project section/*/
body {
      margin: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: #0f0f0f;
      color: #ffffff;
    }

    .projects-section {
      padding: 80px 20px;
      text-align: center;
    }

    .section-title {
      font-size: 2.5rem;
      margin-bottom: 40px;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-weight: 700;
      
    }

    .projects-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      padding: 0 10px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .project-card {
      border-radius: 20px;
      padding: 1.5rem;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }

    .project-card:active {
      transform: scale(0.96);
    }

    .project-card::before {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      background: var(--gradient);
      border-radius: 20px;
      z-index: -2;
      opacity: 0.5;
      transition: opacity 0.4s ease;
    }

    .project-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--bg-card);
      border-radius: 18px;
      z-index: -1;
    }

    .project-card:hover::before {
      opacity: 1;
    }

    .project-card:hover {
      transform: translateY(-15px) rotateX(5deg) scale(1.02);
      animation: cardAdvancedFloat 3s ease-in-out infinite;
      filter: brightness(1.15);
    }

    .project-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 15px;
      margin-bottom: 15px;
      position: relative;
      z-index: 1;
      transition: transform 0.4s ease;
    }

    .project-card:hover img {
      transform: scale(1.05);
    }

    .project-card h3 {
      font-size: 1.4rem;
      margin-bottom: 10px;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      position: relative;
      z-index: 1;
      font-weight: 600;
    }

    .project-card p {
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 15px;
      color: rgba(226, 232, 240, 0.8);
      position: relative;
      z-index: 1;
    }

    /* Animation */
    .animate {
      opacity: 0;
      transform: translateY(50px) scale(0.95);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .animate.visible {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    
    
    
    @keyframes slideInLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.about-section {
  animation: slideInLeft 1s ease-out forwards;
}




/* Fade In Animation */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.fade-in {
  animation: fadeIn 2s ease-in-out;
}

/* Slide In from Left */
@keyframes slideInLeft {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

.slide-in-left {
  animation: slideInLeft 1s ease-out;
}

/* Slide In from Right */
@keyframes slideInRight {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

/* Bounce In */
@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.bounce-in {
  animation: bounceIn 1s ease;
}

/* Rotate In */
@keyframes rotateIn {
  0% { transform: rotate(-200deg); opacity: 0; }
  100% { transform: rotate(0); opacity: 1; }
}

.rotate-in {
  animation: rotateIn 1s ease-out;
}

/* ======= ADVANCED FEATURES ======= */

/* Scroll Progress Indicator */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient);
    z-index: 1000;
    transition: width 0.1s ease;
    box-shadow: var(--glow);
}

/* Smooth Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Micro Interactions */
.card-glow:hover {
    animation: glow-pulse 1.5s infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

/* Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(270deg, #6366f1, #8b5cf6, #06b6d4);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Hover Lift Effect */
.lift-on-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lift-on-hover:hover {
    transform: translateY(-5px);
}

/* Text Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer-text {
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--secondary) 50%, 
        var(--primary) 100%);
    background-size: 1000px 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Experience Timer Styles */
.experience-timer {
    margin: 2rem auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    max-width: 400px;
}

.timer-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timer-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.time-unit {
    text-align: center;
    padding: 0.8rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.time-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.time-label {
    display: block;
    font-size: 0.75rem;
    color: var(--normal);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

@media screen and (max-width: 600px) {
    .timer-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
}

/* ======REVIEW MODAL STYLES======= */
.review-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.review-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.review-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(139, 92, 246, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--normal);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.review-close-btn:hover {
    background: var(--gradient);
    transform: rotate(90deg) scale(1.1);
    color: #ffffff;
}

.review-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
}

.review-header h2 {
    margin-bottom: 0.5rem;
}

.review-header p {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.95rem;
}

.review-form {
    padding: 0 2rem 2rem;
}

.review-step {
    display: none;
    animation: fadeInSlide 0.4s ease;
}

.review-step.active {
    display: block;
}

@keyframes fadeInSlide {
    from { 
        opacity: 0;
        transform: translateX(20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--normal);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: var(--normal);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 2.5rem;
    color: rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #fbbf24;
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.star-rating label:active {
    transform: scale(0.9);
}

.rating-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1.5rem;
    margin-top: 1rem;
}

.review-btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.review-btn-group .btn {
    flex: 1;
}

.review-next-btn,
.review-submit-btn {
    width: 100%;
}

.review-prev-btn {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.review-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.review-submit-btn.loading {
    position: relative;
    color: transparent;
}

.review-submit-btn.loading::after {
    content: 'Sending...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Result Message */
.review-result {
    text-align: center;
    padding: 2rem;
    animation: fadeInSlide 0.4s ease;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.review-result.success .result-icon {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    animation: successPop 0.5s ease;
}

.review-result.success .result-icon::before {
    content: '✓';
}

.review-result.error .result-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: errorShake 0.5s ease;
}

.review-result.error .result-icon::before {
    content: '✕';
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.result-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-message {
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 1.5rem;
}

@media screen and (max-width: 600px) {
    .review-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .review-header {
        padding: 2rem 1.5rem 1rem;
    }
    
    .review-form {
        padding: 0 1.5rem 1.5rem;
    }
    
    .star-rating label {
        font-size: 2rem;
    }
    
    .review-btn-group {
        flex-direction: column;
    }
}

/*/ HASIB RAIHAN /*/
