/* ========================================
   EcoVision Environmental Consultancy
   Responsive Design - Mobile & Tablet
   ======================================== */

/* ========== LOADER - TABLET DEVICES ========== */
@media (max-width: 1024px) {
    .loader-logo {
        width: 70px;
        height: 70px;
    }

    .loader-spinner {
        width: 45px;
        height: 45px;
    }

    .loader-text {
        font-size: 16px;
    }

    .loader-progress {
        width: 180px;
    }
}

/* ========== TABLET DEVICES (768px - 1024px) ========== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-title-wrapper {
        min-height: 75px;
    }

    .hero-title {
        font-size: 36px;
    }

    .rotating-text {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .highlight-list li {
        padding: 12px 0;
        gap: 10px;
        font-size: 16px;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .highlight-list li i {
        font-size: 18px;
        flex-shrink: 0;
    }

    .highlight-list li strong {
        flex-shrink: 0;
        margin-right: 4px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
        grid-column: 1;
        flex-direction: column;
        gap: 16px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== MOBILE DEVICES (480px - 767px) ========== */
@media (max-width: 767px) {
    :root {
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
    }

    /* ========== LOADER - MOBILE ========== */
    .loader-logo {
        width: 60px;
        height: 60px;
    }

    .loader-spinner {
        width: 40px;
        height: 40px;
    }

    .loader-text {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .loader-progress {
        width: 150px;
        height: 3px;
    }

    .loader-content {
        gap: 20px;
    }

    /* ========== NAVIGATION ========== */
    .nav-menu {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 68px);
        z-index: 1000;
        border-top: 8px solid #f5f9f7;
        border-bottom: 2px solid #e0e8e4;
        box-shadow: 0 4px 8px rgba(45, 134, 89, 0.1);
        overflow-y: auto;
        padding: 12px 0 0 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 14px 20px;
        border-bottom: 1px solid #e0e8e4;
        text-align: left;
        border-bottom-color: transparent;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-gray);
        transition: all 0.3s ease;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: #f5f9f7;
        border-left: 4px solid #7cb342;
        padding-left: 16px;
        color: var(--primary-color);
    }

    .hamburger {
        display: flex;
    }

    /* ========== HERO SECTION ========== */
    .hero {
        padding: 40px 16px;
        min-height: 400px;
    }

    .hero-title-wrapper {
        min-height: 70px;
    }

    .hero-title {
        font-size: 28px;
    }

    .rotating-text {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        min-width: auto;
    }

    /* ========== SECTIONS ========== */
    .about-preview {
        padding: 32px 16px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-text h2 {
        font-size: 24px;
    }

    .about-image {
        aspect-ratio: 16 / 9;
        border-radius: 20px;
        box-shadow: 0 12px 36px rgba(45, 134, 89, 0.2), 0 2px 8px rgba(45, 134, 89, 0.12);
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 16px;
        border-radius: 8px;
    }

    .service-icon {
        font-size: 36px;
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .service-card h3 {
        font-size: 15px;
    }

    .service-card p {
        font-size: 13px;
        line-height: 1.4;
    }

    /* ========== PAGE HEADER ========== */
    .page-header {
        padding: 40px 16px;
        min-height: 150px;
    }

    .page-header h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .page-header p {
        font-size: 16px;
    }

    /* ========== PAGE CONTENT ========== */
    .page-content {
        padding: 32px 16px;
    }

    .content-main h2,
    .content-main h3 {
        font-size: 20px;
    }

    .highlight-list {
        margin-bottom: 20px;
    }

    .highlight-list li {
        padding: 12px 0;
        gap: 10px;
        font-size: 15px;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .highlight-list li i {
        flex-shrink: 0;
        font-size: 18px;
        margin-top: 2px;
    }

    .highlight-list li strong {
        flex-shrink: 0;
        margin-right: 4px;
    }

    .highlight-list li i {
        font-size: 18px;
        margin-top: 1px;
    }

    .sidebar {
        gap: 12px;
    }

    .info-box {
        padding: 16px;
    }

    /* ========== TEAM PAGE ========== */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-card {
        margin-bottom: 0;
        border-radius: 12px;
    }

    .member-avatar {
        height: 90px;
        font-size: 30px;
    }

    .member-info {
        padding: 16px;
    }

    .member-info h3 {
        font-size: 18px;
    }

    .position {
        font-size: 14px;
    }

    .qualification {
        font-size: 13px;
    }

    /* Team Values Box Styling */
    .team-values {
        padding: 16px;
    }

    .team-values h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .values-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .value-point {
        padding: 16px;
        border-radius: 10px;
    }

    .value-point h3 {
        font-size: 16px;
        gap: 10px;
    }

    .value-point h3 i {
        font-size: 20px;
    }

    .value-point p {
        font-size: 13px;
        margin-top: 8px;
    }

    /* Team Table Styling */
    .team-table-section {
        margin-bottom: 24px;
    }

    .team-table th,
    .team-table td {
        padding: 12px;
        font-size: 12px;
    }

    .team-table th {
        font-size: 11px;
    }

    .bio {
        font-size: 14px;
    }

    .expertise {
        font-size: 13px;
    }

    .team-table {
        font-size: 13px;
    }

    .team-table th,
    .team-table td {
        padding: 10px;
    }

    .values-list {
        grid-template-columns: 1fr;
    }

    /* ========== SERVICES PAGE ========== */
    .service-section {
        padding: 12px;
        margin-bottom: 16px;
    }

    .service-with-image {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
        padding: 12px;
    }

    .service-with-image .service-header {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .service-with-image .service-image {
        grid-column: 1;
        grid-row: 2;
    }

    .service-with-image .service-content {
        grid-column: 1;
        grid-row: 3;
    }

    .service-with-image.service-reverse .service-image {
        grid-row: 2;
    }

    .service-with-image.service-reverse .service-content {
        grid-row: 3;
    }

    .service-image {
        min-height: 200px;
    }

    .service-header h2 {
        font-size: 18px;
        padding: 12px 14px;
    }

    .service-header h2 i {
        font-size: 20px;
        margin-right: 6px;
    }

    .service-content {
        padding: 10px;
    }

    .service-details p {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .service-details h3 {
        font-size: 15px;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .service-details ul li {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* ========== MISSION & VISION PAGE ========== */
    .mission-vision-grid {
        gap: 16px;
    }

    .mission-card,
    .vision-card {
        padding: 20px;
    }

    .card-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .mission-card h2,
    .vision-card h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .intro-text {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        padding: 16px;
    }

    /* ========== CLIENT SUCCESS PAGE ========== */
    .comparison-grid {
        gap: 16px;
    }

    .before-after-section h2 {
        font-size: 24px;
    }

    .before-list li,
    .after-list li {
        font-size: 13px;
        padding: 8px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        padding: 16px;
    }

    .benefit-icon {
        font-size: 28px;
    }

    .story-item {
        padding: 16px;
        margin-bottom: 12px;
    }

    /* ========== REVIEWS PAGE ========== */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-card {
        padding: 18px;
        border-radius: 12px;
    }

    .review-header {
        margin-bottom: 12px;
    }

    .client-name {
        font-size: 17px;
    }

    .client-company {
        font-size: 13px;
    }

    .review-text {
        font-size: 14px;
    }

    .review-highlight {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    .theme-card {
        padding: 16px;
        border-radius: 12px;
    }

    /* ========== DOCUMENTS PAGE ========== */
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .document-card {
        padding: 18px;
        border-radius: 12px;
    }

    .doc-icon {
        font-size: 32px;
    }

    .document-card h3 {
        font-size: 16px;
    }

    .document-card p {
        font-size: 14px;
    }

    .doc-meta {
        gap: 12px;
        font-size: 12px;
    }
    .documents-intro {
        padding: 16px;
    }

    .document-section h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .document-card {
        padding: 16px;
    }

    .doc-icon {
        font-size: 28px;
    }

    .document-card h3 {
        font-size: 15px;
    }

    .doc-meta {
        font-size: 11px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item h3 {
        font-size: 14px;
    }

    /* ========== CLIENT SUCCESS PAGE ========== */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .comparison-card {
        border-radius: 12px;
    }

    .before-after-section h2 {
        font-size: 24px;
    }

    .card-body {
        padding: 16px;
    }

    .before-list li,
    .after-list li {
        font-size: 14px;
        padding: 10px 0;
        padding-left: 28px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-item {
        padding: 18px;
        border-radius: 12px;
    }

    .benefit-icon {
        font-size: 32px;
    }

    .benefit-item h3 {
        font-size: 17px;
    }

    .benefit-item p {
        font-size: 14px;
    }

    .story-item {
        padding: 16px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .story-item h3 {
        font-size: 17px;
    }

    .story-item p {
        font-size: 14px;
    }

    /* ========== MISSION & VISION PAGE ========== */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mission-card,
    .vision-card {
        padding: 20px;
        border-radius: 12px;
    }

    .card-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .mission-card h2,
    .vision-card h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .intro-text {
        font-size: 13px;
    }

    .mission-list li,
    .vision-list li {
        font-size: 13px;
        padding: 8px 0;
        padding-left: 20px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .value-item {
        padding: 16px;
        border-radius: 12px;
    }

    /* ========== CONTACT PAGE ========== */
    .contact-grid {
        gap: 24px;
    }

    .contact-form {
        padding: 16px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .info-box {
        margin-bottom: 12px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-item {
        padding: 16px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .reason-item {
        padding: 16px;
    }

    /* ========== FOOTER ========== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-section h4 {
        font-size: 15px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 13px;
    }

    /* ========== CTA SECTION ========== */
    .cta-section {
        padding: 32px 16px;
        margin: 24px 0;
        border-radius: 6px;
    }

    .cta-section h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cta-section p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    /* ========== TABLES ========== */
    .table-responsive {
        overflow-x: auto;
    }

    .team-table {
        font-size: 12px;
    }

    .team-table th,
    .team-table td {
        padding: 8px;
    }

    .team-table th {
        font-size: 11px;
    }
}

/* ========== ENHANCED MOBILE TYPOGRAPHY (480px - 767px) ========== */
@media (max-width: 767px) {
    /* Refined font scaling */
    h1 {
        font-size: 24px !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 20px !important;
        line-height: 1.25;
    }

    h3 {
        font-size: 17px !important;
        line-height: 1.3;
    }

    h4 {
        font-size: 15px !important;
        line-height: 1.35;
    }

    h5 {
        font-size: 14px !important;
    }

    h6 {
        font-size: 13px !important;
    }

    p {
        font-size: 15px !important;
        line-height: 1.6;
    }

    a {
        font-size: 15px !important;
    }

    li {
        font-size: 14px !important;
    }

    strong {
        font-size: inherit !important;
    }

    span {
        font-size: inherit !important;
    }

    /* Button optimization */
    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        height: auto;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-light {
        font-size: 14px !important;
    }

    /* Icon scaling */
    i {
        font-size: 1em !important;
    }

    .fa, [class^="fa-"], [class*=" fa-"] {
        font-size: 1.2em !important;
    }

    /* Image optimization */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Card padding reduction */
    .card, .service-card, .team-card, .review-card, .document-card {
        padding: 16px !important;
    }

    /* Spacing optimization */
    .section-spacing {
        margin: 20px 0 !important;
    }

    /* Text input optimization for mobile */
    input, textarea, select {
        font-size: 16px;
    }
}

/* ========== SMALL MOBILE (< 480px) ========== */
@media (max-width: 479px) {
    :root {
        --font-size-base: 14px;
    }

    /* Aggressive text scaling for small screens */
    body {
        font-size: 14px !important;
    }

    h1 {
        font-size: 20px !important;
        line-height: 1.15;
        margin-bottom: 12px !important;
    }

    h2 {
        font-size: 18px !important;
        line-height: 1.2;
        margin-bottom: 10px !important;
    }

    h3 {
        font-size: 16px !important;
        line-height: 1.25;
        margin-bottom: 8px !important;
    }

    h4 {
        font-size: 14px !important;
    }

    h5 {
        font-size: 13px !important;
    }

    h6 {
        font-size: 12px !important;
    }

    p {
        font-size: 14px !important;
        line-height: 1.55;
        margin-bottom: 12px !important;
    }

    a {
        font-size: 14px !important;
    }

    li {
        font-size: 13px !important;
        line-height: 1.5;
    }

    strong {
        font-size: inherit !important;
        font-weight: 600;
    }

    span {
        font-size: inherit !important;
    }

    small {
        font-size: 12px !important;
    }

    em {
        font-size: inherit !important;
    }

    /* Button optimization */
    .btn {
        padding: 9px 16px !important;
        font-size: 13px !important;
        min-height: 40px;
        border-radius: 4px;
    }

    .btn-doc-preview,
    .btn-doc-download {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px !important;
    }

    /* Icon sizing */
    i {
        font-size: 0.9em !important;
    }

    .fa, [class^="fa-"], [class*=" fa-"] {
        font-size: 1em !important;
    }

    .service-icon {
        font-size: 32px !important;
        width: 50px !important;
        height: 50px !important;
    }

    .doc-icon {
        font-size: 24px !important;
    }

    .benefit-icon {
        font-size: 22px !important;
    }

    /* Card styling */
    .service-card,
    .team-card,
    .review-card,
    .document-card,
    .mission-card,
    .vision-card {
        padding: 12px !important;
    }

    .member-avatar {
        height: 70px !important;
        font-size: 24px !important;
    }

    /* Reduce excessive padding */
    .page-content,
    .about-preview,
    .services-preview {
        padding: 20px 12px !important;
    }

    .info-box,
    .cta-section {
        padding: 16px !important;
    }

    .container {
        padding: 0 12px;
    }

    .navbar .container {
        padding: 12px 16px;
    }

    .nav-logo {
        height: 40px;
    }

    /* ========== NAVIGATION MOBILE MENU ========== */
    .nav-menu {
        height: calc(100vh - 68px);
        padding: 12px 0 0 0;
        border-top: 8px solid #f5f9f7;
    }

    .nav-menu a {
        padding: 12px 16px;
        font-size: 15px;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        padding-left: 14px;
    }

    .hero {
        padding: 32px 12px;
        min-height: 350px;
    }

    .hero-title {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .page-header {
        padding: 32px 12px;
        min-height: 160px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-header p {
        font-size: 14px;
    }

    .page-content {
        padding: 24px 12px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header p {
        font-size: 14px;
    }

    .content-main h2 {
        font-size: 20px;
        margin-top: 24px;
    }

    .content-main h3 {
        font-size: 17px;
        margin-top: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Button sizing optimization */
    .btn-primary, 
    .btn-secondary, 
    .btn-outline, 
    .btn-light {
        min-height: 40px;
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-doc-preview,
    .btn-doc-download {
        padding: 6px 10px !important;
        font-size: 12px !important;
        height: auto;
    }

    .service-section {
        padding: 8px;
        margin-bottom: 12px;
        border-left: 3px solid #2d8659;
    }

    .service-with-image {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 8px;
        border-left: none;
    }

    .service-with-image .service-header {
        order: 1;
        margin-bottom: 0;
    }

    .service-with-image .service-image {
        order: 2;
    }

    .service-with-image .service-content {
        order: 3;
    }

    .service-with-image.service-reverse .service-image {
        order: 2;
    }

    .service-with-image.service-reverse .service-content {
        order: 3;
    }

    .service-image {
        width: 100%;
        height: 220px;
        overflow: hidden;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 4px;
    }

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-header h2 {
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
    }

    .service-header h2 i {
        font-size: 18px;
    }

    .service-content {
        padding: 8px;
    }

    .service-details p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .service-details h3 {
        font-size: 15px;
        margin-top: 10px;
        margin-bottom: 6px;
    }

    .service-details ul li {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .team-card {
        margin-bottom: 0;
    }

    .member-avatar {
        height: 80px;
        font-size: 28px;
    }

    .member-info {
        padding: 12px;
    }

    .member-info h3 {
        font-size: 16px;
    }

    .position {
        font-size: 12px;
    }

    .qualification {
        font-size: 12px;
    }

    .bio {
        font-size: 13px;
    }

    .expertise {
        font-size: 12px;
        padding: 6px 10px;
    }

    .story-item h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .story-item p {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .before-list li,
    .after-list li {
        font-size: 12px;
        padding: 6px 0;
        padding-left: 24px;
    }

    .benefit-icon {
        font-size: 24px;
    }

    .benefit-item h3 {
        font-size: 16px;
    }

    .benefit-item p {
        font-size: 13px;
    }

    .review-card {
        padding: 12px;
    }

    .client-name {
        font-size: 16px;
    }

    .client-company {
        font-size: 12px;
    }

    .review-text {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .review-highlight {
        font-size: 12px;
        padding: 8px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .document-card {
        padding: 12px;
    }

    .doc-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .document-card h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .document-card p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .info-item h3 {
        font-size: 15px;
    }

    .info-item p {
        font-size: 13px;
    }

    .contact-form {
        padding: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 15px;
    }

    .faq-item {
        padding: 12px;
    }

    .faq-item h3 {
        font-size: 14px;
    }

    .faq-item p {
        font-size: 13px;
    }

    .reason-item h3 {
        font-size: 15px;
    }

    .reason-item p {
        font-size: 13px;
    }

    .reason-icon {
        font-size: 28px;
    }

    .highlight-list {
        margin-bottom: 16px;
    }

    .highlight-list li {
        padding: 10px 0;
        gap: 8px;
        font-size: 14px;
        line-height: 1.5;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .highlight-list li i {
        font-size: 16px;
        margin-top: 1px;
        flex-shrink: 0;
    }

    .highlight-list li strong {
        font-size: 14px;
        flex-shrink: 0;
        margin-right: 3px;
    }

    .cta-section {
        padding: 24px 12px;
        margin: 16px 0;
    }

    .cta-section h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .cta-section p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 12px;
        line-height: 1.6;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 12px;
    }

    /* Icon scaling for small devices */
    .service-icon {
        font-size: 32px;
        width: 50px;
        height: 50px;
    }

    .doc-icon {
        font-size: 24px;
    }

    /* Enhanced button sizing */
    .btn {
        min-height: 40px;
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 4px;
    }

    /* WhatsApp button optimization */
    #whatsapp-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
        bottom: 12px;
        right: 12px;
    }

    #whatsapp-btn:hover {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
}

/* ========== MOBILE ELEMENTS OPTIMIZATION ========== */
@media (max-width: 768px) {
    /* ========== Navigation ========== */
    .nav-menu a {
        font-size: 15px;
        padding: 12px 16px;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

    .hamburger i {
        font-size: 18px;
    }

    /* ========== Hero Section ========== */
    .hero {
        padding: 40px 16px;
        min-height: 380px;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .rotating-text {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 11px 22px;
        font-size: 14px;
    }

    /* ========== Page Header ========== */
    .page-header {
        padding: 40px 16px;
        min-height: 160px;
    }

    .page-header h1 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .page-header p {
        font-size: 15px;
    }

    /* ========== Section Headers ========== */
    .section-header h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .section-header p {
        font-size: 15px;
    }

    /* ========== Cards & Containers ========== */
    .service-card {
        padding: 16px;
        border-radius: 10px;
    }

    .service-icon {
        font-size: 40px;
        width: 65px;
        height: 65px;
        margin-bottom: 12px;
    }

    .service-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* ========== About Section ========== */
    .about-preview {
        padding: 32px 16px;
    }

    .about-text h2 {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .about-text p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    /* ========== Content Main ========== */
    .content-main h2 {
        font-size: 22px;
        margin: 20px 0 16px 0;
    }

    .content-main h3 {
        font-size: 18px;
        margin: 18px 0 12px 0;
    }

    .content-main p {
        font-size: 14px;
        margin-bottom: 14px;
        line-height: 1.65;
    }

    /* ========== Highlight List ========== */
    .highlight-list li {
        padding: 10px 0;
        font-size: 14px;
        line-height: 1.5;
    }

    .highlight-list li i {
        font-size: 16px;
        margin-top: 2px;
    }

    /* ========== Info Boxes ========== */
    .info-box {
        padding: 16px;
        border-radius: 10px;
    }

    .info-box h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .info-box p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    /* ========== Mission & Vision Cards ========== */
    .mission-card,
    .vision-card {
        padding: 18px;
        border-radius: 10px;
    }

    .card-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .mission-card h2,
    .vision-card h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .intro-text {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .mission-list li,
    .vision-list li {
        padding: 8px 0;
        padding-left: 22px;
        font-size: 13px;
    }

    /* ========== Values Grid ========== */
    .value-item {
        padding: 14px;
        border-radius: 10px;
    }

    .value-item h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .value-item p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* ========== Team Page ========== */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-card {
        padding-top: 14px;
        border-radius: 10px;
    }

    .member-avatar {
        height: 85px;
        font-size: 30px;
    }

    .member-info {
        padding: 14px;
    }

    .member-info h3 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .position {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .qualification {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .bio {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .expertise {
        font-size: 12px;
        padding: 6px 10px;
    }

    .team-table th,
    .team-table td {
        padding: 10px;
        font-size: 12px;
    }

    .team-table th {
        font-size: 11px;
    }

    /* ========== Client Success Page ========== */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .comparison-card {
        border-radius: 10px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .before-list li,
    .after-list li {
        font-size: 13px;
        padding: 8px 0;
        padding-left: 24px;
    }

    .benefit-item {
        padding: 16px;
        border-radius: 10px;
    }

    .benefit-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .benefit-item h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .benefit-item p {
        font-size: 13px;
        line-height: 1.5;
    }

    .story-item {
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .story-item h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .story-item p {
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* ========== Reviews Page ========== */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .review-card {
        padding: 16px;
        border-radius: 10px;
    }

    .client-name {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .client-company {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .review-text {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .review-highlight {
        font-size: 12px;
        padding: 8px;
    }

    .stat-number {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 12px;
    }

    .theme-card {
        padding: 14px;
        border-radius: 10px;
    }

    .theme-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .theme-card p {
        font-size: 13px;
    }

    /* ========== Documents Page ========== */
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .document-card {
        padding: 14px;
        border-radius: 10px;
    }

    .doc-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .document-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .document-card p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .doc-meta {
        font-size: 11px;
        gap: 8px;
    }

    .doc-type,
    .doc-size {
        padding: 3px 6px;
    }

    /* ========== Contact Page ========== */
    .contact-form {
        padding: 14px;
        border-radius: 10px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 15px;
        border-radius: 6px;
    }

    /* ========== FAQ Section ========== */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-item {
        border-radius: 10px;
    }

    .faq-item-header {
        padding: 14px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-item p {
        padding: 0 14px 14px 14px;
        font-size: 13px;
    }

    .faq-toggle-icon {
        width: 24px;
        height: 24px;
    }

    /* ========== Reasons Grid ========== */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .reason-item {
        padding: 14px;
        border-radius: 10px;
    }

    .reason-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .reason-item h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .reason-item p {
        font-size: 13px;
    }

    /* ========== Footer ========== */
    .footer-section {
        padding: 14px;
        border-radius: 8px;
    }

    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    /* ========== CTA Section ========== */
    .cta-section {
        padding: 24px 14px;
        margin: 20px 0;
        border-radius: 10px;
    }

    .cta-section h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .cta-section p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* ========== Commitment Section ========== */
    .commitment-section {
        padding: 16px;
    }

    .commitment-section h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .commitment-list li {
        font-size: 13px;
        margin-bottom: 8px;
    }

    /* ========== WhatsApp Button ========== */
    #whatsapp-btn {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    #whatsapp-btn:hover {
        width: 58px;
        height: 58px;
        font-size: 28px;
    }
}

/* ========== LANDSCAPE MODE ========== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 300px;
        padding: 32px 16px;
    }

    .page-header {
        padding: 24px 16px;
    }

    .page-header h1 {
        font-size: 24px;
        margin-bottom: 4px;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .hero-buttons,
    .cta-section,
    .footer,
    .btn,
    .contact-form {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .page-content {
        padding: 0;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }
}

/* ========== HIGH DPI DISPLAYS ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hamburger span {
        border-radius: 3px;
    }

    button,
    a.btn {
        border-radius: 8px;
    }
}
