/* Responsive Styles */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .app-image img {
        max-height: 400px;
    }
}

/* Terms and Conditions Page Responsive */
@media (max-width: 1200px) {
    .terms-content {
        gap: 30px;
    }
    
    .terms-section {
        padding: 25px;
    }
    
    .terms-section h2 {
        font-size: 1.7rem;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    /* Team Section */
    .team-members {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-member {
        padding: 25px 20px;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
    
    .team-member h3 {
        font-size: 1.3rem;
    }
    
    .team-member span {
        font-size: 0.9rem;
    }
    
    .team-member p {
        font-size: 0.9rem;
    }
    
    /* Achievements Section */
    .achievements-counters {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .counter-item {
        padding: 25px 20px;
    }
    
    .counter-icon {
        width: 70px;
        height: 70px;
    }
    
    .counter-icon i {
        font-size: 30px;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .counter-text {
        font-size: 1rem;
    }
    .container {
        max-width: 720px;
    }

    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        height: auto;
        min-height: 500px;
    }

    .hero-swiper .swiper-slide {
        flex-direction: column;
        padding: 50px 20px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .categories-container,
    .all-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-download-section .container {
        flex-direction: column;
    }

    .app-content {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .app-buttons {
        justify-content: center;
    }

    .app-image img {
        max-height: 350px;
    }
    
    /* Contact page responsive */
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form-container {
        padding: 30px;
    }
    
    .contact-faqs {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .support-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    /* Team Section */
    .team-members {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-member {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Achievements Section */
    .achievements-counters {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .counter-item {
        max-width: 400px;
        margin: 0 auto;
    }
    /* Terms and Conditions Page */
    .terms-toc {
        border-left: none;
        border-top: 4px solid var(--primary-color);
    }
    
    .banner-actions {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .banner-action-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .terms-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .terms-section:hover {
        transform: none;
    }
    
    .terms-section h2 {
        font-size: 1.6rem;
    }
    
    .terms-section h3 {
        font-size: 1.2rem;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .back-to-top-btn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
    .container {
        max-width: 540px;
    }

    section {
        padding: 50px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .join-cards {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex-direction: column;
    }

    .testimonial-image {
        flex: 0 0 200px;
        width: 100%;
    }
    
    .testimonial-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Contact page responsive */
    .page-banner, .contact-banner {
        padding: 80px 0 60px;
    }
    
    .page-banner h1, .contact-banner h1 {
        font-size: 2.2rem;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .social-connect {
        flex-wrap: wrap;
    }
    
    .social-connect-item {
        flex: 0 0 calc(50% - 10px);
        justify-content: center;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 40px 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .categories-container,
    .all-categories {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .payment-logos img {
        height: 40px;
        margin: 0 15px;
    }

    .app-image img {
        max-height: 300px;
    }
    
    .vendor-image {
        height: 180px;
        flex: 0 0 180px;
    }
    
    .testimonial-card {
        min-height: auto;
    }
    
    /* Contact page responsive */
    .page-banner h1, .contact-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner p, .contact-banner p {
        font-size: 1rem;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .contact-faqs {
        grid-template-columns: 1fr;
    }
    
    .social-connect {
        flex-direction: column;
    }
    
    .social-connect-item {
        width: 100%;
        justify-content: center;
    }
}