/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(135deg, #1d2327, #0f0c0c, #1d2327);
    min-height: 100vh;
    color: #fff;
    font-family: 'Hind Siliguri', sans-serif;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
    letter-spacing: 0.3px;
    position: relative;
}

.welcome-box {
    background: rgba(29, 23, 35, 0.85);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(191, 12, 50, 0.1), transparent);
    z-index: -1;
}

.inner-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 10px;
}

/* New Logo Styles */
.logo-container {
    margin-bottom: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #bf0c32;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px; 
    text-shadow: 
        0 0 10px rgba(191, 12, 50, 0.5),
        0 0 20px rgba(191, 12, 50, 0.3),
        0 0 30px rgba(191, 12, 50, 0.2);
    position: relative;
    animation: glow 2s infinite alternate;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, #bf0c32, transparent);
    border-radius: 50%;
}

@keyframes glow {
    0% {
        text-shadow: 
            0 0 10px rgba(191, 12, 50, 0.5),
            0 0 20px rgba(191, 12, 50, 0.3),
            0 0 30px rgba(191, 12, 50, 0.2);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(191, 12, 50, 0.7),
            0 0 25px rgba(191, 12, 50, 0.5),
            0 0 35px rgba(191, 12, 50, 0.3);
    }
}

.logo-icon {
    font-size: 2.8rem;
    color: #bf0c32;
    text-shadow: 0 0 10px rgba(191, 12, 50, 0.5);
    margin-top: 5px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    word-break: keep-all;
    word-wrap: break-word;
}

.subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin: 15px 0 20px;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.search-container {
    position: relative;
    margin: 25px 0;
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(191, 12, 50, 0.3);
    transition: all 0.3s ease;
    max-width: 850px;
    margin: 0 auto;
}

.search-box:focus-within {
    border-color: #bf0c32;
    box-shadow: 0 0 15px rgba(191, 12, 50, 0.3);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    font-family: 'Hind Siliguri', sans-serif;
    min-width: 50px;
}

.search-box input::placeholder {
    color: #aaa;
}

.search-box button {
    padding: 0 20px;
    background: linear-gradient(to right, #bf0c32, #d62d4e);
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-box button:hover {
    background: linear-gradient(to right, #d62d4e, #bf0c32);
}

.btn {
    display: block;
    width: 100%;
    max-width: 850px;
    padding: 16px;
    background: linear-gradient(to right, #bf0c32, #d62d4e);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 25px auto;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(191, 12, 50, 0.3);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(191, 12, 50, 0.5);
    background: linear-gradient(to right, #d62d4e, #bf0c32);
}

.tip {
    background: rgba(191, 12, 50, 0.1);
    padding: 20px;
    margin: 25px auto;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-notice {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 8px 0;
}

.tip-notice i {
    color: #fff;
    font-size: 1.4rem;
}

.tip-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, #bf0c32, transparent);
    width: 90%;
    margin: 5px auto;
}

.tip-content {
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
    padding: 0 10px;
}

.tip-content ol {
    list-style-type: none;
    padding-left: 0;
}

.tip-content li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

/* Bengali numbering system */
.tip-content li::before {
    content: "";
    color: #bf0c32;
    position: absolute;
    left: 0;
    font-size: 1rem;
    font-weight: bold;
    width: 25px;
    text-align: right;
    padding-right: 5px;
}

.tip-content li:nth-child(1)::before { content: "১."; }
.tip-content li:nth-child(2)::before { content: "২."; }
.tip-content li:nth-child(3)::before { content: "৩."; }
.tip-content li:nth-child(4)::before { content: "৪."; }
.tip-content li:nth-child(5)::before { content: "৫."; }

.contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 25px 0;
    font-size: 1.1rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact a {
        color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(191, 12, 50, 0.1);
    border-radius: 8px;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    justify-content: center;
}

.contact a:hover {
    background: rgba(191, 12, 50, 0.2);
    transform: translateY(-3px);
}

.footer-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    width: 80%;
    margin: 25px auto 30px;
    position: relative;
    border-radius: 2px;
}

.footer-separator::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.copyright {
    margin-top: 0;
    color: #777;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.decoration {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.film-strip {
    display: flex;
    height: 8px;
    background: #bf0c32;
    width: 80%;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
}

.film-strip::before,
.film-strip::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 10px;
    background: #1d2327;
    top: 0;
}

.film-strip::before {
    left: 25%;
}

.film-strip::after {
    left: 75%;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    padding: 15px 20px;
    background: rgba(191, 12, 50, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
    min-width: 150px;
    flex: 1;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(191, 12, 50, 0.2);
}

.feature i {
    font-size: 2rem;
    color: #bf0c32;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.search-info {
    background: rgba(191, 12, 50, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    text-align: center;
    max-width: 850px;
}

.search-info i {
    color: #bf0c32;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(to right, #bf0c32, #d62d4e);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    background: linear-gradient(to right, #d62d4e, #bf0c32);
    transform: translateY(-3px);
}

/* Scroll Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animation delays for staggered effect */
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Page Loader Styles - Redesigned */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d2327, #0f0c0c, #1d2327);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduced gap */
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.loader-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.loader-logo {
    font-size: 4rem; /* Increased size */
    color: #bf0c32;
    text-shadow: 0 0 15px rgba(191, 12, 50, 0.7);
    margin-bottom: 0;
}

.loader-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem; /* Larger font size */
    font-weight: 700;
    color: #bf0c32;
    text-shadow: 0 0 15px rgba(191, 12, 50, 0.7);
    margin-top: 5px; /* Reduced top margin */
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.loader-text {
    font-size: 2.2rem; /* Larger font size */
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-top: 15px;
}

.dots-container {
    display: flex;
    gap: 18px;
    margin-top: 15px;
}

.dot {
    width: 24px; /* Larger dots */
    height: 24px; /* Larger dots */
    border-radius: 50%;
    background-color: #bf0c32;
    box-shadow: 0 0 12px rgba(191, 12, 50, 0.8);
    animation: bounce 1.5s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px); /* Larger bounce */
    }
}

.loader-subtext {
    margin-top: 20px;
    font-size: 1.4rem; /* Larger font size */
    color: #aaa;
    max-width: 80%;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

@media (min-width: 769px) {
    .welcome-box {
        border-radius: 15px;
        min-height: auto;
        max-width: 950px;
        width: 100%;
        padding: 50px 40px;
    }
    
    body {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .welcome-box {
        border-radius: 0;
        min-height: 100vh;
    }
    
    .logo-text {
        font-size: 2.8rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 14px;
    }
    
    .feature {
        min-width: 120px;
        padding: 12px 15px;
        max-width: 140px;
    }
    
    .feature i {
        font-size: 1.8rem;
    }
    
    .search-box button {
        padding: 0 15px;
    }
    
    .contact a {
        padding: 8px 16px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .tip-notice {
        font-size: 1.1rem;
    }
    
    /* Responsive adjustments for back-to-top button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Loader responsive */
    .loader-text {
        font-size: 1.8rem;
    }
    
    .dot {
        width: 18px;
        height: 18px;
    }
    
    .loader-subtext {
        font-size: 1.1rem;
    }
    
    .loader-logo-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-box {
        padding: 20px 10px;
    }
    
    .inner-content {
        padding: 10px;
    }
    
    .logo-text {
        font-size: 2.2rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 14px;
    }
    
    .search-box input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .search-box button {
        padding: 0 15px;
        font-size: 0.95rem;
    }
    
    .feature {
        min-width: 100px;
        padding: 10px 12px;
        max-width: 120px;
    }
    
    .feature h3 {
        font-size: 0.8rem;
    }
    
    .contact a {
        padding: 8px 14px;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .tip {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .tip-notice {
        font-size: 1.3rem;
    }
    
    .search-info {
        padding: 12px;
        font-size: 1rem;
    }
    
    .footer-separator {
        width: 90%;
        margin: 20px auto 25px;
    }
    
    /* Mobile adjustments for back-to-top button */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Loader responsive */
    .loader-text {
        font-size: 1.5rem;
    }
    
    .loader-logo {
        font-size: 3rem;
    }
    
    .dot {
        width: 16px;
        height: 16px;
    }
    
    .loader-subtext {
        font-size: 1rem;
    }
    
    .loader-logo-text {
        font-size: 2rem;
    }
}

@media (max-width: 360px) {
    .logo-text {
        font-size: 1.4rem;
    }
    
    .search-box button span {
        display: inline;
        font-size: 0.9rem;
    }
    
    .search-box button {
        padding: 0 12px;
    }
    
    .btn span {
        font-size: 0.9rem;
    }
    
    .contact {
        gap: 10px;
    }
    
    .contact a {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    .feature {
        min-width: 80px;
        padding: 10px;
        max-width: 100px;
    }
    
    .feature i {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .tip-notice {
        font-size: 0.95rem;
    }
    
    /* Loader responsive */
    .loader-text {
        font-size: 1.3rem;
    }
    
    .loader-logo {
        font-size: 2.5rem;
    }
    
    .loader-logo-text {
        font-size: 1.8rem;
    }
}