/* Universal Box Sizing */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px; /* Adjust for fixed header */
}

body.lang-bn * {
    font-family: "Hind Siliguri", sans-serif !important;
}

.container {
    width: 80%;
    margin: auto;
}

/* Header */
header {
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

.logo-link {
    text-decoration: none;
    color: #fff;
    text-transform: none;
    -webkit-tap-highlight-color: transparent;
}

header nav {
    display: flex;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

header nav li {
    margin-left: 20px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
}

header .logo-link {
    text-transform: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  -webkit-transition: .4s;
  transition: .4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #f44336;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.lang-text {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}


/* Hamburger Menu Button */
.nav-toggle {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
    transition: background 0.2s ease-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    left: 0;
    transition: transform 0.2s ease-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 998;
}

.nav-overlay.visible {
    display: block;
}

/* Hero Section */
.hero {
    min-height: 400px;
    background: linear-gradient(to right, #4a00e0, #8e2de2);
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
    /* REMOVED OPACITY 0 */
}

.hero.loaded {
    opacity: 1;
}

.hero h2 {
    font-size: 55px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
}

.hero .btn {
    display: inline-block;
    width: auto;
    background: #fff;
    color: #4a00e0;
    padding: 12px 24px;
    text-decoration: none;
    margin-top: 20px;
    border-radius: 5px;
    font-weight: 700;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* Main Content */
.main-content {
    padding: 20px 0;
    flex: 1;
    /* REMOVED OPACITY 0 */
}

.main-content p {
    text-align: justify;
}

.main-content.loaded {
    opacity: 1;
}

/* upper-content.html specific styles */
.content-section {
    padding: 60px 0;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.text-container {
    padding: 0 40px;
}


.hero-section {
    background: linear-gradient(45deg, #0779e4, #056abf);
    color: #fff;
}

.hero-section h2, .hero-section .lead {
    color: #fff;
}

.text-center {
    text-align: center;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #555;
}

.services-grid .service-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card.color-1 { border-color: #0779e4; }
.service-card.color-2 { border-color: #f44336; }
.service-card.color-3 { border-color: #4caf50; }
.service-card.color-4 { border-color: #ff9800; }
.service-card.color-5 { border-color: #9c27b0; }

.alternate-bg {
    background-color: #f8f9fa;
}

.approach-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.approach-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.approach-list li span {
    font-weight: 700;
    margin-right: 15px;
    color: #fff;
    background: #0779e4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.reasons-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.reasons-list li {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-top: 3px solid #0779e4;
}

.cta-section {
    background: linear-gradient(45deg, #0779e4, #056abf);
    color: #fff;
    padding: 60px 0;
    border-radius: 8px;
}

.cta-section h3, .cta-section p {
    color: #fff;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #0779e4;
    padding: 15px 30px;
    text-decoration: none;
    margin-top: 20px;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #eee;
    color: #056abf;
    transform: scale(1.05);
}


/* Contact Form */
#contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0779e4;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    background: #0779e4;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn[type="submit"]:hover {
    background: #056abf;
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px;
    margin-top: auto;
}

/* Login Page */
.login-container {
    background: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 40px auto;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: #0779e4;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

/* Media Query for responsiveness */
@media(max-width: 768px){
    header .container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
        z-index: 1000;
        order: 1;
    }

    .logo-link {
        order: 2;
    }

    .language-switcher {
        order: 3;
    }

    header nav {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        width: 70%;
        background: linear-gradient(to right, #4a00e0, #8e2de2);
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    header nav.nav--visible {
        left: 0;
    }

    header nav ul {
        flex-direction: column;
        padding-top: 4rem;
    }

    header nav li {
        margin: 0;
        padding: 1rem 2rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    header nav li:last-child {
        border-bottom: none;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .container {
        width: 90%;
    }

    .login-container, #contact-form {
        margin: 20px auto;
        width: 100%;
        padding: 20px;
    }
    
    .login-container h2 {
        font-size: 28px;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .payment-gateways {
        justify-content: center;
    }

    .gateway-icons {
        margin-left: 0;
        flex-wrap: nowrap;
    }
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1001; /* Increase z-index to ensure it's on top */
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
    animation: fadein 0.5s, fadeout 0.5s 4.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    padding: 0 20px;
}

.footer-column h4 {
    margin-bottom: 10px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
}

/* Payment Gateways */
.payment-gateways {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.gateway-icons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.gateway-icons img {
    height: 30px;
}
.products {
    padding: 20px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card img {
    width: 100%;
    height: auto;
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    margin: 0 0 10px 0;
}

.product-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.rating {
    margin-bottom: 10px;
    font-size: 14px;
}

.rating span {
    color: #ffc107;
}

.price {
    font-size: 16px;
    font-weight: bold;
}

.current-price {
    color: #28a745;
    margin-right: 10px;
}

.original-price {
    color: #dc3545;
    text-decoration: line-through;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-details .price {
    margin-bottom: 20px;
}

.product-details .btn {
    display: block;
    width: fit-content;
    margin: 20px 0 0 0;
    padding: 12px 30px;
}

@media(max-width: 992px){
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px){
    .product-details-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 576px){
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Slider */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    background: #fff;
}

.image-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: #333;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align items to ends */
    margin-bottom: 30px;
    gap: 10px; /* Add space between elements */
}
