/* ==================== RESPONSIVE DESIGN FIXES ==================== */
/* This file contains critical responsive improvements for all devices */

/* ==================== Root & Base Styles ==================== */
:root {
    /* Responsive font sizing */
    --font-size-sm: clamp(0.75rem, 1.5vw, 1rem);
    --font-size-base: clamp(1rem, 2vw, 1.125rem);
    --font-size-lg: clamp(1.25rem, 2.5vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 3vw, 2rem);
    --font-size-2xl: clamp(2rem, 4vw, 2.5rem);
    --font-size-3xl: clamp(2.5rem, 5vw, 3.5rem);
    --font-size-4xl: clamp(3rem, 7vw, 4.5rem);

    /* Responsive spacing */
    --spacing-xs: clamp(0.25rem, 1vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 2vw, 1rem);
    --spacing-md: clamp(1rem, 2.5vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 3vw, 2rem);
    --spacing-xl: clamp(2rem, 4vw, 3rem);
}

/* Global overflow fix for mobile */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }

    /* Modal responsive styles */
    .modal-content {
        padding: 1.5rem !important;
        max-height: 95vh !important;
        border-radius: 16px !important;
    }

    .modal-content .about-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .modal-content .about-image {
        order: 2 !important;
    }

    .modal-content .about-text {
        order: 1 !important;
    }

    .modal-close {
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: 36px !important;
        height: 36px !important;
    }
}

/* ==================== Hero Section Responsiveness ==================== */
.hero {
    padding-top: 90px !important;
}

.hero-inner {
    gap: clamp(2rem, 4vw, 4rem) !important;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.2rem) !important;
    line-height: 1.08 !important;
    word-break: break-word !important;
    hyphens: auto !important;
}

.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
    word-break: break-word !important;
}

.hero-visual {
    height: clamp(320px, 45vw, 540px) !important;
}

.hero-stat-num {
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
}

.cta-btn {
    font-size: var(--font-size-base) !important;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 3rem) !important;
    border-radius: clamp(0.5rem, 1vw, 1rem) !important;
    white-space: nowrap !important;
}

/* ==================== Navbar Responsiveness ==================== */
.navbar {
    padding: clamp(0.375rem, 1vw, 0.6rem) 0 !important;
}

.container {
    padding: 0 clamp(1rem, 3vw, 1.5rem) !important;
}

.logo h1 {
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
}

.logo {
    /* Logo is absolutely positioned, no height needed */
}

.logo img {
    height: clamp(50px, 10vw, 75px) !important;
}

.nav-menu {
    margin-left: clamp(0.25rem, 1vw, 1rem) !important;
    gap: clamp(0.4rem, 1.5vw, 2.5rem) !important;
    justify-content: flex-start !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
}

.nav-menu a {
    font-size: clamp(0.6rem, 1.2vw, 0.95rem) !important;
    white-space: nowrap !important;
}

.theme-toggle {
    width: clamp(40px, 8vw, 50px) !important;
    height: clamp(40px, 8vw, 50px) !important;
    font-size: clamp(1rem, 2vw, 1.3rem) !important;
    margin-left: auto !important;
}

/* ==================== Hamburger visibility on mobile ==================== */
@media (max-width: 768px) {
    .navbar .container {
        justify-content: space-between !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #1a0a2e 0%, #0d1f3c 30%, #0a2540 60%, #0d0419 100%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 80px 30px 30px !important;
        gap: 0 !important;
        margin: 0 !important;
        box-shadow: -5px 0 30px rgba(143, 0, 255, 0.4) !important;
        transition: right 0.3s ease !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        display: flex !important;
    }

    .nav-menu.active {
        right: 0 !important;
        display: flex !important;
    }

    .nav-menu li {
        width: 100% !important;
        border-bottom: 1px solid rgba(143, 0, 255, 0.3) !important;
        list-style: none !important;
    }

    .nav-menu a {
        display: block !important;
        padding: 18px 0 !important;
        font-size: 1.2rem !important;
        width: 100% !important;
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
    }

    .nav-menu a:hover {
        color: #ff006e !important;
    }

    body.light-theme .nav-menu {
        background: linear-gradient(180deg, #f0e6ff 0%, #e0f7ff 30%, #d4f1f9 60%, #e8e0f0 100%) !important;
    }

    body.light-theme .nav-menu a {
        color: #1a0a2e !important;
    }

    body.light-theme .nav-menu a:hover {
        color: #8f00ff !important;
    }

    .theme-toggle {
        margin-left: auto !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .hamburger {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: linear-gradient(135deg, #8f00ff 0%, #ff006e 50%, #8f00ff 100%) !important;
        border: 2px solid #ff006e !important;
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
        box-shadow: 0 4px 15px rgba(143, 0, 255, 0.5) !important;
        margin-left: 0 !important;
    }

    .hamburger-line {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #ffffff !important;
        width: 24px !important;
        height: 3px !important;
    }

    body.light-theme .hamburger {
        background: linear-gradient(135deg, #8f00ff 0%, #ff006e 50%, #8f00ff 100%) !important;
        border-color: #ff006e !important;
    }

    body.light-theme .hamburger-line {
        background: #ffffff !important;
    }
}

/* ==================== Section Padding Responsiveness ==================== */
.about,
.products,
.capabilities,
.clients,
.contact,
.footer {
    padding: var(--spacing-xl) var(--spacing-md) !important;
}

/* ==================== Heading Responsiveness ==================== */
.about-text h2,
.products h2,
.capabilities h2,
.clients h2,
.contact h2 {
    font-size: var(--font-size-3xl) !important;
    margin-bottom: var(--spacing-lg) !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

.section-subtitle {
    font-size: var(--font-size-lg) !important;
    margin-bottom: var(--spacing-lg) !important;
}

/* ==================== Cards & Grid Responsiveness ==================== */
.product-card,
.capability-item {
    padding: var(--spacing-md) !important;
    border-radius: clamp(0.75rem, 2vw, 1rem) !important;
}

.client-logo {
    padding: var(--spacing-sm) !important;
}

.product-card h3,
.capability-item h3 {
    font-size: var(--font-size-xl) !important;
}

.about-highlights li {
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-size: var(--font-size-base) !important;
    margin-bottom: var(--spacing-sm) !important;
    border-radius: clamp(0.25rem, 0.5vw, 0.5rem) !important;
}

/* ==================== Form Elements Responsiveness ==================== */
.form-group input,
.form-group textarea {
    font-size: var(--font-size-base) !important;
    padding: clamp(0.7rem, 1.5vw, 1rem) !important;
    border-radius: clamp(0.5rem, 1vw, 0.75rem) !important;
}

/* ==================== Image Responsiveness ==================== */
.hero-img-main img,
.hero-img-secondary img,
.placeholder-image,
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Text Wrapping & Overflow ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

p,
span,
a,
li {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* ==================== Media Queries - Tablet (768px) ==================== */
/* ==================== Media Queries - Tablet (768px) ==================== */
@media (max-width: 768px) {
    :root {
        --spacing-xs: clamp(0.25rem, 1vw, 0.5rem);
        --spacing-sm: clamp(0.5rem, 1.5vw, 0.8rem);
        --spacing-md: clamp(0.8rem, 2vw, 1.2rem);
        --spacing-lg: clamp(1rem, 2.5vw, 1.5rem);
        --spacing-xl: clamp(1.5rem, 3vw, 2rem);
    }

    html {
        font-size: 14px !important;
    }

    .hero {
        padding: 60px 0 40px !important;
        min-height: auto !important;
    }

    .hero-inner {
        grid-template-columns: 1fr !important;
        gap: clamp(1.5rem, 3vw, 2rem) !important;
    }

    .hero-visual {
        height: 360px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .hero-content {
        align-items: center !important;
        text-align: center !important;
    }

    .hero-desc {
        max-width: 100% !important;
        padding: 0 clamp(1rem, 2vw, 1.5rem) !important;
    }

    .products-grid,
    .capabilities-grid,
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: clamp(1rem, 2.5vw, 1.5rem) !important;
    }

    /* Products Carousel Mobile */
    .products-carousel {
        padding: 0 40px !important;
        overflow: hidden !important;
    }

    .products-carousel-track {
        gap: 0 !important;
    }

    .products-carousel-track .product-card {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .carousel-arrow {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }

    .carousel-arrow-left {
        left: 4px !important;
    }

    .carousel-arrow-right {
        right: 4px !important;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: clamp(1.5rem, 3vw, 2rem) !important;
    }

    .about-text h2 {
        font-size: 1.75rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .about-info-grid {
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
    }

    .about-vision-mission {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Hamburger menu - styles handled in main styles.css */

    .container {
        padding: 0 clamp(1rem, 4vw, 1.25rem) !important;
    }
}

/* ==================== Media Queries - Mobile (480px) ==================== */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
    }

    html {
        font-size: 13px !important;
    }

    body {
        line-height: 1.5 !important;
    }

    .hero {
        padding: 40px 0 30px !important;
        min-height: auto !important;
    }

    .hero-visual {
        height: 280px !important;
        max-width: 100% !important;
    }

    .hero-stats {
        gap: 0.8rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .hero-badge {
        font-size: 0.75rem !important;
    }

    .products-grid,
    .capabilities-grid,
    .clients-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Products Carousel for small mobile */
    .products-carousel {
        padding: 0 35px !important;
    }

    .products-carousel-track .product-card {
        padding: 0.8rem !important;
    }

    .carousel-arrow {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .carousel-arrow-left {
        left: 3px !important;
    }

    .carousel-arrow-right {
        right: 3px !important;
    }

    .product-card,
    .capability-item {
        padding: 1rem !important;
    }

    .client-logo {
        padding: 0.5rem !important;
    }

    .product-card h3,
    .capability-item h3,
    .capability-icon {
        font-size: 1rem !important;
    }

    .capability-icon {
        animation: pulseInOut 2s ease-in-out infinite !important;
        margin-bottom: 0.75rem !important;
        font-size: 2.5rem !important;
    }

    .capability-item:hover .capability-icon {
        transform: none !important;
    }

    .contact-info,
    .contact-form {
        width: 100% !important;
    }

    .contact-form {
        margin-top: 1.5rem !important;
    }

    .info-item {
        flex-direction: row !important;
        gap: 1rem !important;
        align-items: flex-start !important;
    }

    .info-icon {
        font-size: 1.5rem !important;
        flex-shrink: 0 !important;
    }

    h1 {
        font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
    }

    h2 {
        font-size: clamp(1.3rem, 4vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1rem, 3vw, 1.4rem) !important;
    }

    .container {
        padding: 0 1rem !important;
    }

    nav.navbar {
        padding: 0.5rem 0 !important;
    }

    /* Hamburger menu mobile styles handled in main styles.css */

    /* Nav menu styling for 480px */
    .nav-menu {
        background: linear-gradient(180deg, #1a0a2e 0%, #0d1f3c 30%, #0a2540 60%, #0d0419 100%) !important;
        width: 260px !important;
        padding: 70px 25px 25px !important;
    }

    .nav-menu a {
        color: #ffffff !important;
        font-size: 1.1rem !important;
        padding: 15px 0 !important;
    }

    body.light-theme .nav-menu {
        background: linear-gradient(180deg, #f0e6ff 0%, #e0f7ff 30%, #d4f1f9 60%, #e8e0f0 100%) !important;
    }

    body.light-theme .nav-menu a {
        color: #1a0a2e !important;
    }

    /* Ensure hamburger is visible at 480px */
    .theme-toggle {
        margin-left: auto !important;
        margin-right: 8px !important;
        flex-shrink: 0 !important;
    }

    .hamburger {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: linear-gradient(135deg, #8f00ff 0%, #ff006e 50%, #8f00ff 100%) !important;
        border: 2px solid #ff006e !important;
        width: 44px !important;
        height: 44px !important;
        flex-shrink: 0 !important;
        box-shadow: 0 4px 15px rgba(143, 0, 255, 0.5) !important;
        margin-left: 0 !important;
    }

    .hamburger-line {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #ffffff !important;
        width: 22px !important;
        height: 3px !important;
    }

    body.light-theme .hamburger {
        background: linear-gradient(135deg, #8f00ff 0%, #ff006e 50%, #8f00ff 100%) !important;
    }

    body.light-theme .hamburger-line {
        background: #ffffff !important;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px !important;
        padding: 0.75rem !important;
    }

    button {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    .cta-btn,
    .submit-btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    ::-webkit-input-placeholder {
        font-size: 14px !important;
    }

    :-moz-placeholder {
        font-size: 14px !important;
    }

    .section-subtitle {
        padding: 0 1rem !important;
    }

    /* Mobile Navigation */
    .navbar {
        padding: 0.3rem 0 !important;
        position: sticky !important;
        top: 0 !important;
    }

    .navbar .container {
        flex-direction: row !important;
        align-items: center !important;
        padding: 0.3rem 0.5rem !important;
        gap: 0.25rem !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    .logo {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .logo img {
        height: 32px !important;
        width: auto !important;
    }

    /* Hamburger menu handles navigation on mobile - styles in main styles.css */

    .theme-toggle {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
    }

    /* Mobile Hero Section */
    .hero {
        padding: 100px 0 40px !important;
        min-height: auto !important;
    }

    .hero-inner {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .hero-content {
        text-align: center !important;
        align-items: center !important;
        order: 1 !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .hero-desc {
        font-size: 0.9rem !important;
        padding: 0 0.5rem !important;
    }

    .hero-visual {
        order: 2 !important;
        height: auto !important;
        min-height: 350px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        position: relative !important;
    }

    .hero-img-main {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 auto !important;
    }

    .hero-img-main img {
        max-height: 250px !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .hero-img-secondary {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        max-width: 120px !important;
        max-height: 120px !important;
        margin: 0 !important;
    }

    .hero-img-secondary:nth-of-type(1),
    .hero-img-secondary:nth-of-type(2) {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
    }

    /* Stack secondary images horizontally below main */
    .hero-visual::after {
        content: '';
        display: block;
        clear: both;
    }

    .hero-float-card {
        display: none !important;
    }

    .hero-float-card--1,
    .hero-float-card--2 {
        display: none !important;
    }

    .hero-cta-group {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
        align-items: center !important;
    }

    .cta-btn,
    .cta-outline {
        width: 100% !important;
        max-width: 250px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .hero-stats {
        flex-direction: row !important;
        gap: 1rem !important;
        justify-content: center !important;
    }

    .hero-stat-divider {
        display: block !important;
    }

    .hero-badge {
        font-size: 0.7rem !important;
    }

    /* Mobile About Modal */
    .modal-content {
        padding: 1.5rem !important;
        overflow-x: hidden !important;
    }

    .about-text h2 {
        font-size: 1.4rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
    }

    .about-text {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .about-details {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .about-text {
        order: 1 !important;
    }

    .about-image {
        order: 2 !important;
        max-width: 100% !important;
    }

    .about-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    .about-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .about-info-item {
        padding: 0.75rem !important;
    }

    .about-info-item h4 {
        font-size: 0.75rem !important;
    }

    .about-info-item p {
        font-size: 0.85rem !important;
    }

    .about-vision-mission {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .detail-section h4 {
        font-size: 1rem !important;
    }

    .detail-section p {
        font-size: 0.85rem !important;
    }

    /* Scroll indicator */
    .hero-scroll {
        bottom: 10px !important;
    }
}

/* ==================== Extra Small Mobile (360px and below) ==================== */
@media (max-width: 360px) {
    .logo img {
        height: 26px !important;
    }

    /* Nav menu for extra small screens */
    .nav-menu {
        background: linear-gradient(180deg, #1a0a2e 0%, #0d1f3c 30%, #0a2540 60%, #0d0419 100%) !important;
        width: 240px !important;
        padding: 65px 20px 20px !important;
    }

    .nav-menu a {
        color: #ffffff !important;
        font-size: 1rem !important;
        padding: 12px 0 !important;
    }

    body.light-theme .nav-menu {
        background: linear-gradient(180deg, #f0e6ff 0%, #e0f7ff 30%, #d4f1f9 60%, #e8e0f0 100%) !important;
    }

    body.light-theme .nav-menu a {
        color: #1a0a2e !important;
    }

    /* Hamburger menu for extra small screens */
    .theme-toggle {
        margin-left: auto !important;
        margin-right: 6px !important;
        flex-shrink: 0 !important;
    }

    .hamburger {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: linear-gradient(135deg, #8f00ff 0%, #ff006e 50%, #8f00ff 100%) !important;
        border: 2px solid #ff006e !important;
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
        box-shadow: 0 4px 12px rgba(143, 0, 255, 0.5) !important;
        margin-left: 0 !important;
    }

    .hamburger-line {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #ffffff !important;
        width: 20px !important;
        height: 3px !important;
    }

    body.light-theme .hamburger {
        background: linear-gradient(135deg, #8f00ff 0%, #ff006e 50%, #8f00ff 100%) !important;
    }

    body.light-theme .hamburger-line {
        background: #ffffff !important;
    }

    .theme-toggle {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
    }

    /* Products Carousel for extra small screens */
    .products-carousel {
        padding: 0 30px !important;
    }

    .products-carousel-track .product-card {
        padding: 0.6rem !important;
    }

    .carousel-arrow {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
    }

    .carousel-arrow-left {
        left: 2px !important;
    }

    .carousel-arrow-right {
        right: 2px !important;
    }

    .product-image {
        height: 150px !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .about-text h2 {
        font-size: 1.2rem !important;
        max-width: 100% !important;
    }

    .about-info-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-img-main img {
        max-height: 200px !important;
    }

    .hero-img-secondary {
        max-width: 100px !important;
        max-height: 100px !important;
    }
}

/* ==================== Zoom Compatibility ==================== */
/* Ensure content doesn't break on zoom */
@supports (-webkit-touch-callout: none) {

    /* iOS Safari */
    html {
        /* Prevent text zoom in landscape */
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
}

/* Standard zoom compatibility */
body {
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

/* ==================== Browser Compatibility ==================== */
/* Ensure grid layout works in all browsers */
.hero-inner {
    display: -ms-grid !important;
    display: grid !important;
}

.hero-content {
    display: -webkit-flex !important;
    display: flex !important;
}

/* Prevent tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent !important;
}

/* ==================== Prevent Layout Shift ==================== */
html {
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ==================== Ensure Readability ==================== */
body {
    line-height: 1.6 !important;
}

p {
    line-height: 1.7 !important;
}

a {
    text-decoration: none !important;
    touch-action: manipulation !important;
}

button {
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}