/* ================================
   Responsive Styles
   ================================ */

/* Tablet Devices */
@media (max-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Layout */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Navbar - Static (no size change on scroll) */
    .navbar {
        padding: 1rem 0;
    }
    
    .hero-slider {
        margin-top: 70px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        margin: 0;
        gap: 0;
    }
    
    .navbar-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-menu li:last-child {
        border-bottom: none;
    }
    
    .navbar-link {
        display: block;
        padding: 1rem;
        text-align: center;
    }
    
    .navbar-menu.active {
        transform: translateX(0);
    }
    
    .navbar-actions {
        gap: 0.5rem;
    }
    
    .btn-cta-nav {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
        order: 3;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding-top: 100px; /* Adjusted for fixed navbar */
    }
    
    .hero-container {
        padding: 3rem 1.5rem;
        padding-left: 5%;
        justify-content: flex-start;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: left;
    }
    
    .hero-title {
        text-align: left;
    }
    
    .hero-description {
        text-align: left;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        gap: 2rem;
        justify-content: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image {
        max-width: 400px;
    }
    
    .floating-element {
        display: none;
    }
    
    /* About Section */
    .about {
        padding: 4rem 0 0;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-tagline::before,
    .why-tagline::before {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    /* Why Choose Us */
    .why-choose-us {
        padding: 4rem 0;
    }
    
    .why-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .why-title {
        font-size: 2rem;
    }
    
    .image-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .badge-number {
        font-size: 2rem;
    }
    
    /* Services */
    .services {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-image {
        height: 220px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .btn-outline {
        padding: 0.75rem 1.8rem;
        font-size: 0.85rem;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Expertise Section */
    .expertise {
        padding: 4rem 0;
    }
    
    .expertise-title {
        font-size: 2.2rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .expertise-image {
        height: 200px;
    }
    
    .expertise-content {
        padding: 1.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Spacing */
    section {
        padding: var(--spacing-md) 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-image {
        max-width: 300px;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    /* About Section */
    .about {
        padding: 3rem 0 0;
    }
    
    .about-title,
    .why-title {
        font-size: 1.8rem;
    }
    
    .about-text,
    .why-description {
        font-size: 1rem;
    }
    
    .features-bar {
        padding: 2rem 0;
        margin-top: 3rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    /* Services Grid - Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    /* Why Choose Us */
    .why-choose-us {
        padding: 3rem 0;
    }
    
    .why-list li {
        font-size: 1rem;
    }
    
    .image-badge {
        padding: 0.8rem 1.2rem;
    }
    
    .badge-number {
        font-size: 1.8rem;
    }
    
    .badge-text {
        font-size: 0.8rem;
    }
    
        /* Expertise Section */
    .expertise {
        padding: 3rem 0;
    }
    
    .expertise-title {
        font-size: 1.8rem;
    }
    
    .expertise-subtitle {
        font-size: 1rem;
    }
    
    .expertise-card-title {
        font-size: 1.3rem;
    }
    
    .expertise-description {
        font-size: 0.95rem;
    }
    
    .expertise-image {
        height: 180px;
    }
    
    .expertise-content {
        padding: 1.5rem;
    }
        /* Services */
    .services {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .section-tagline {
        font-size: 0.75rem;
        padding: 0.5rem 1.2rem;
        letter-spacing: 1.5px;
    }
    
    .service-card {
        padding: 1.5rem;
    }

    .service-image {
        height: 200px;
        border-radius: 12px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .btn-outline {
        padding: 0.7rem 1.6rem;
        font-size: 0.8rem;
    }
    
    /* Expertise Section */
    .expertise-title {
        font-size: 1.8rem;
    }
    
    .expertise-subtitle {
        font-size: 1rem;
    }
    
    .expertise-card-title {
        font-size: 1.3rem;
    }
    
    .expertise-description {
        font-size: 0.95rem;
    }
    
    .expertise-image {
        height: 180px;
    }
    
    /* Cards */
    .card {
        padding: var(--spacing-sm);
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact {
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-contact li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .footer-contact i {
        margin: 0 auto;
        font-size: 1.25rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(243, 156, 18, 0.1);
        border-radius: 50%;
        flex-shrink: 0;
    }
    
    /* Page Header */
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    /* Mission & Vision */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mv-icon {
        width: 70px;
        height: 70px;
    }
    
    .mv-icon i {
        font-size: 30px;
    }
    
    .mv-title {
        font-size: 22px;
    }
    
    /* Who We Are */
    .who-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .who-title {
        font-size: 30px;
    }
    
    /* Our Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Why Us */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-card {
        padding: 30px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 35px;
        min-height: 300px; /* Fixed height for tablets */
        max-height: 300px;
    }
    
    .testimonial-text {
        font-size: 16px;
        -webkit-line-clamp: 4; /* Maintain 4-line limit */
    }
    
    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-heading {
        font-size: 30px;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 25px;
        min-height: 340px; /* Slightly taller for mobile due to vertical layout */
        max-height: 340px;
    }
    
    .testimonial-text {
        -webkit-line-clamp: 5; /* Allow 5 lines on mobile for better readability */
    }
    
    .testimonial-author {
        flex-direction: column;
    }
    
    /* Features Bar */
    .features-bar {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .features-grid {
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
    }
    
    .feature-icon i {
        font-size: 1.4rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-col {
        margin-bottom: 1.5rem;
    }
    
    .footer-contact {
        gap: 1.25rem;
    }
    
    .footer-contact li {
        max-width: 100%;
        margin: 0 auto;
        padding: 0.5rem 1rem;
    }
    
    .footer-contact i {
        margin: 0 auto;
        font-size: 1.15rem;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .footer-contact span,
    .footer-contact a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.7;
        font-size: 0.95rem;
    }
    
    .footer-title {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .slider-container {
        height: 700px;
    }
}
