/* 
==============================================
Dandapani Associates - Responsive Stylesheet
==============================================
*/

/* --- Laptops and Large Tablets (max-width: 1024px) --- */
@media (max-width: 1024px) {
    html {
        font-size: 15px; /* Slightly smaller base font */
    }

    .grid-2-col {
        gap: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-headline {
        font-size: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* --- Tablets and Small Laptops (max-width: 768px) --- */
@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Navigation - Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        max-height: 500px;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a::after {
        display: none; /* Disable underline effect on mobile menu */
    }

    .nav-links a.active {
        background-color: rgba(200, 164, 93, 0.1);
    }

    .navbar {
        background-color: var(--primary);
        padding: 1rem 0;
    }

    /* Hero */
    .hero-headline {
        font-size: 2.75rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* About Section */
    .about-image-wrapper {
        order: 2; /* Move image below text */
        margin-top: 2rem;
        padding-bottom: 30px; /* Space for badge */
    }

    .about-text {
        order: 1;
    }

    .experience-badge {
        right: 10px;
        bottom: 0;
        padding: 20px;
    }

    .experience-badge .counter {
        font-size: 3rem;
    }

    /* Legacy Timeline */
    .timeline-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }

    .timeline-line {
        top: 0;
        left: 31px;
        width: 2px;
        height: 100%;
    }

    .timeline-item {
        display: flex;
        text-align: left;
        margin-bottom: 30px;
        padding: 0;
    }

    .timeline-dot {
        margin: 0 20px 0 0;
        flex-shrink: 0;
    }

    .timeline-content {
        padding-top: 2px;
    }

    /* Contact Section */
    .contact-wrapper {
        gap: 3rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Phones (max-width: 480px) --- */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .slider-controls {
        gap: 1rem;
    }

    .testimonial-text {
        font-size: 1.25rem;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }

    .flex-between {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
