/* Responsive Styles for Kenny Ramanand */
@import url('style.css');

/* Tablet Styles (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 92%;
    }

    .hero-content h1 {
        font-size: 42px;
        line-height: 1.2;
    }

    .hero .container {
        gap: 30px;
    }

    .d-flex {
        gap: 30px;
    }

    .available-grid {
        gap: 40px;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {

    /* Header & Nav */
    header {
        height: 80px;
        position: relative;
        /* Better for mobile scroll */
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }

    header .logo {
        font-size: 24px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Active State for Toggle Button */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Side Menu */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 340px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        justify-content: flex-start;
        align-items: flex-start;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        text-align: left;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 20px;
        font-weight: 600;
        width: 100%;
    }

    .nav-menu .contact-btn {
        margin-top: 20px;
        text-align: center;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0 3rem 0;
        min-height: auto !important;
        text-align: center;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        justify-content: center;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .hero-content p.description {
        font-size: 18px;
        margin-bottom: 2rem;
    }

    .book-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .intro-section {
        .d-flex {
            flex-direction: column-reverse;
        }
    }

    /* General Layout */
    .d-flex {
        flex-direction: column;
    }

    .d-flex .left,
    .d-flex .right {
        width: 100%;
    }

    section {
        margin-bottom: 60px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 18px;
        line-height: 1.5;
    }

    /* Intro Section */
    .intro-section .section-description {
        margin-bottom: 40px;
    }

    .intro-section .accordion-header {
        font-size: 18px;
        padding: 15px 20px;
    }

    .intro-section .accordion-content {
        padding: 15px 20px;
        font-size: 16px;
    }

    /* Conclusion Section */
    .conclusion-card {
        flex-direction: column;
        padding: 40px 20px 0;
        text-align: center;
        min-height: auto;
    }

    .conclusion-image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .conclusion-title {
        font-size: 26px;
    }

    /* Review Section */
    .review-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 30px;
    }

    .review-slider-container {
        margin: 0 !important;
        padding: 10px 0;
        overflow: hidden;
        /* This is the viewport for the slider */
        width: 100%;
        position: relative;
    }

    .review-grid {
        display: flex;
        gap: 20px;
        transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        scroll-behavior: auto;
        /* Prevent conflict with JS transform */
    }

    .review-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    /* Available Section */
    .available-section {
        padding: 60px 0;
    }

    .available-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .available-content {
        padding: 30px 20px;
    }

    .available-book-img {
        height: 350px;
    }

    .glow-bg {
        width: 300px;
        height: 300px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-newsletter p {
        width: 100%;
    }



    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    /* Contact Page Specific */
    .contact-header h1 {
        font-size: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
        max-width: 92%;
        margin: 20px auto;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    /* Modal Form Fixes */
    .form-row-three {
        grid-template-columns: 1fr;
    }

    .time-range-new {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .range-to {
        text-align: center;
        width: 100%;
        margin: 0;
    }

    .time-input-group {
        width: 100%;
    }

    .phone-input {
        width: 100%;
    }

    .modal-content {
        padding: 40px 20px 20px;
        max-width: 95%;
        width: 95%;
        border-radius: 16px;
    }

    .modal-header h2 {
        font-size: 22px;
        line-height: 1.2;
        margin-top: 10px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 15px;
    }

    .time-input-group {
        height: 44px;
    }

    .submit-btn.centered {
        width: 100%;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p.description {
        font-size: 16px;
    }

    .buy-btn {
        width: 80%;
        justify-content: center;
    }

    .available-book-img {
        height: 280px;
    }

    .book-btn {
        padding: 14px;
    }
}