/* Base Styles */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #292F36;
    --light-color: #F7FFF7;
    --bright-orange: #FF9F1C;
    --bright-blue: #2EC4B6;
    --bright-pink: #FF3366;
    --bright-purple: #6B5B95;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.bengali-font {
    font-family: 'Hind Siliguri', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--bright-pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.support-btn {
    background-color: var(--bright-blue);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.support-btn:hover {
    background-color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Banner Slider */
.banner-slider {
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
}

.slide h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* News Ticker */
.news-ticker {
    background-color: #013A63;
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--dark-color);
    padding: 10px 15px;
    font-weight: 600;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100px;
    animation: ticker linear infinite;
    animation-delay: 0s; /* Start immediately */
    animation-duration: 50s; /* Default for desktop */
}

.ticker-content span {
    margin-right: 50px;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Medium screens */
@media (max-width: 1024px) {
    .ticker-content {
        animation-duration: 65s; /* Slightly slower for tablets */
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .ticker-content {
        animation-duration: 85s; /* Slower for mobile */
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .ticker-content {
        animation-duration: 100s; /* Slowest for small phones */
    }
}


/* Services Overview */
.services-overview {
    padding: 60px 0;
    background-color: white;
}

.services-overview h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-item h3 {
    color: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--bright-blue);
    color: white;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Plans Section */
.plans-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.plans-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.plan-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.plan-card.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.plan-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.plan-card h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

.plan-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.plan-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.plan-card li:before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.plan-card .btn {
    width: 100%;
    text-align: center;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: white;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-details {
    padding: 20px;
}

.project-details h3 {
    color: var(--primary-color);
}

.project-details .location {
    color: var(--bright-blue);
    font-weight: 500;
}

.project-details .type {
    color: var(--bright-purple);
    font-weight: 500;
}

/* REPLACE any existing .projects-pagination styles with this: */
.projects-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 8px;
    flex-wrap: wrap;
}

/* REPLACE any existing .page-link styles with this: */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

/* ADD these new styles if they don't exist: */
.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

.page-link.prev-next {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--dark-color);
    font-weight: 600;
}

/* ADD these responsive styles: */
@media (max-width: 768px) {
    .projects-pagination {
        gap: 6px;
    }
    
    .page-link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .page-link.prev-next {
        padding: 0 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .projects-pagination {
        gap: 4px;
    }
    
    .page-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-width: 1px;
    }
    
    .page-link.prev-next {
        padding: 0 12px;
        font-size: 0.8rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-item {
    min-width: 300px;
    scroll-snap-align: start;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rating {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.rating span {
    color: var(--dark-color);
    font-weight: 500;
    margin-left: 10px;
}

.testimonial-item .content {
    font-style: italic;
    margin-bottom: 20px;
}

.client-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.client-info p {
    color: var(--dark-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bright-blue);
    color: white;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.contact-map {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.footer-links h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.cookie-consent {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-consent a {
    color: var(--accent-color);
    text-decoration: none;
}

.cookie-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-accept:hover {
    background-color: var(--bright-pink);
}

/* Legal Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content.legal-content {
    background-color: white;
    padding: 50px 30px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    position: relative;
    color: var(--dark-color);
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.legal-text {
    display: none;
    padding: 0 10px;
}

.legal-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.legal-text h3 {
    color: var(--dark-color);
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.legal-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-content.legal-content {
        width: 95%;
        max-height: 85vh;
        padding: 40px 20px 20px;
    }
    
    .legal-text h2 {
        font-size: 1.5rem;
    }
    
    .legal-text h3 {
        font-size: 1.2rem;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .popup-content.legal-content {
        width: 100%;
        max-height: 90vh;
        border-radius: 0;
        padding: 35px 15px 15px;
    }
    
    .legal-text {
        padding: 0;
    }
    
    .close-btn {
        top: 10px;
        right: 10px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .slide h2 {
        font-size: 2rem;
    }
    
    .slide p {
        font-size: 1rem;
    }
    
    .plan-card.featured {
        transform: none;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .banner-slider {
        height: 60vh;
    }
    
    .slide-content {
        width: 90%;
    }
    
    .ticker-label {
        position: static;
        display: block;
        text-align: center;
        padding: 5px;
    }
    
    .ticker-content {
        padding-left: 0;
        text-align: center;
    }
}

/* Fix for footer gap */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Make sure main content pushes footer down */
.container {
    flex: 1;
}

/* Footer styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 0;
    margin-top: auto; /* This pushes footer to bottom */
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
}

footer.footer,
.footer-bottom {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

html, body {
    height: 100% !important;
}
