* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #111827;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

/* Performance: Hero elements visible immediately (GSAP enhances, not creates) */
/* This prevents Flash of Invisible Content and improves perceived LCP */
#hero-title,
#hero-desc,
#hero-buttons,
#hero-image,
#hero-badge {
    opacity: 1;
    transform: none;
}

/* Animations still apply via GSAP for scroll-triggered elements (.anim-up, etc.) */
/* These are below-the-fold elements that benefit from lazy animation */

/* Performance: CSS-only animation fallback for browsers without GSAP */
@media (prefers-reduced-motion: no-preference) {
    .animate-in.anim-up {
        animation: animUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .animate-in.anim-left {
        animation: animLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .animate-in.anim-right {
        animation: animRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .animate-in.anim-scale {
        animation: animScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

@keyframes animUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes animRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes animScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    .anim-up,
    .anim-left,
    .anim-right,
    .anim-scale {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

.anim-up {
    opacity: 0;
    transform: translateY(40px);
}

.anim-left {
    opacity: 0;
    transform: translateX(-60px);
}

.anim-right {
    opacity: 0;
    transform: translateX(60px);
}

.anim-scale {
    opacity: 0;
    transform: scale(0.9);
}

.logo_image {
    padding: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
}

.grid-bg {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px -12px rgba(29, 78, 216, 0.15);
}

.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.pulse-ring {
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.circuit-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Neon grid line pulse */
.neon-grid-line {
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        opacity: 0.15;
        stroke-width: 0.5;
    }

    50% {
        opacity: 0.6;
        stroke-width: 1.2;
    }
}

/* Neon glow node pulse */
.neon-glow-node {
    animation: nodeGlow 3s ease-in-out infinite;
}

@keyframes nodeGlow {

    0%,
    100% {
        r: 1.5;
        opacity: 0.4;
    }

    50% {
        r: 3.5;
        opacity: 0.8;
    }
}

/* Neon trace line sweep */
.neon-trace {
    animation: traceSweep 4s ease-in-out infinite;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}

@keyframes traceSweep {
    0% {
        stroke-dashoffset: 800;
        opacity: 0.1;
    }

    30% {
        opacity: 0.4;
    }

    60% {
        stroke-dashoffset: 0;
        opacity: 0.4;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.1;
    }
}

.stat-counter {
    font-variant-numeric: tabular-nums;
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-outline {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.04);
}

.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card-img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover .product-card-img {
    transform: scale(1.08);
}

.underline-anim {
    position: relative;
}

.underline-anim::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1d4ed8, #06b6d4);
    transition: width 0.3s ease;
}

.underline-anim:hover::after {
    width: 100%;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
}

.industry-icon-wrap {
    transition: all 0.3s ease;
}

.industry-card:hover .industry-icon-wrap {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    color: white;
    transform: scale(1.1);
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #111827;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100vw - 2rem);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ========== FLOATING WHATSAPP BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    opacity: 0;
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Mobile adjustments for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        font-size: 0.8125rem;
        padding: 0.75rem 1rem;
        width: auto;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float:hover {
        transform: none;
    }

    .whatsapp-pulse {
        animation: none;
    }
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ============================================
   COOKIE CONSENT BANNER STYLES
   ============================================ */

/* Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #f8f9fa;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease;
}

/* .cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
} */

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cookie-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cookie-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #1e40af;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
    transform: translateY(-1px);
}

.cookie-btn-primary:active {
    transform: translateY(0);
}

.cookie-btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.cookie-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 1.25rem;
    max-width: 560px;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1) translateY(0);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.cookie-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Cookie Category Cards */
.cookie-category {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category:hover {
    border-color: #d1d5db;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-category-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.cookie-category-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: #dbeafe;
    color: #1e40af;
}

.cookie-badge-optional {
    background: #fef3c7;
    color: #92400e;
}

.cookie-category-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.cookie-category-examples {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

/* Cookie Toggle Switch */
.cookie-toggle-wrap {
    position: relative;
    flex-shrink: 0;
}

.cookie-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-label {
    display: block;
    width: 48px;
    height: 26px;
    background: #d1d5db;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.25s ease;
    position: relative;
}

.cookie-toggle-label::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-toggle:checked+.cookie-toggle-label {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.cookie-toggle:checked+.cookie-toggle-label::before {
    transform: translateX(22px);
}

.cookie-toggle:disabled+.cookie-toggle-label {
    background: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Cookie Policy Footer Link */
.cookie-policy-link {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.cookie-policy-link.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-policy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-policy-btn:hover {
    background: rgba(17, 24, 39, 0.9);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive for Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 0.875rem;
    }

    .cookie-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-title {
        font-size: 0.9rem;
    }

    .cookie-desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .cookie-actions {
        flex-wrap: wrap;
        margin-top: 0;
        gap: 0.5rem;
    }

    .cookie-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .cookie-modal-content {
        max-height: calc(100vh - 2rem);
        border-radius: 1rem;
    }

    .cookie-modal-header {
        padding: 1rem;
    }

    .cookie-modal-body {
        padding: 1rem;
    }

    .cookie-category {
        padding: 1rem;
    }

    .cookie-policy-link {
        bottom: 0.75rem;
        left: 0.75rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1023px) {
    .cookie-banner {
        padding: 1.25rem;
    }

    .cookie-content {
        gap: 1.25rem;
    }

    .cookie-modal-content {
        max-width: 520px;
    }
}

/* Mobile menu toggle button */
#menu-toggle {
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

#menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1f2937;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menu-toggle #bar1 {
    width: 24px;
}

#menu-toggle #bar2 {
    width: 24px;
}

#menu-toggle #bar3 {
    width: 16px;
    margin-left: auto;
}

/* ============================================
   MOBILE RESPONSIVE STYLES (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    /* ========== RESET ANIMATIONS ON MOBILE ========== */
    /* Disable GSAP animations on mobile - show content immediately */
    .anim-up,
    .anim-left,
    .anim-right,
    .anim-scale {
        opacity: 1 !important;
        transform: none !important;
    }

    .h-full {
        height: 100% !important;
    }

    /* ========== GLOBAL TYPOGRAPHY ========== */
    body h1,
    body h2,
    body h3,
    body h4,
    body h5,
    body h6 {
        line-height: 1.2 !important;
    }

    body h1,
    #hero-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

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

    p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    .text-lg {
        font-size: 0.9rem !important;
    }

    .text-sm {
        font-size: 0.75rem !important;
    }

    .text-xs {
        font-size: 0.65rem !important;
    }

    /* ========== HERO SECTIONS (ALL PAGES) ========== */
    section#hero,
    section[id="hero"] {
        padding-top: 8rem !important;
        padding-bottom: 1.5rem !important;
        min-height: auto !important;
        align-items: flex-start !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Hero grid - stack vertically on mobile */
    section#hero .grid,
    section[id="hero"] .grid,
    section#hero .max-w-7xl,
    section[id="hero"] .max-w-7xl {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Hero image - constrain height on mobile */
    #hero-image {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #hero-image>div {
        max-height: none !important;
        overflow: visible !important;
    }

    #hero-image>div .bg-gradient-to-br {
        display: none;
    }

    #hero-image img {
        width: 15rem !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    /* Index page only: fix hero image overlapping buttons (has inline margin-top: -150px) */
    .index-hero #hero-image img {
        margin-top: -0.5rem !important;
        transform: rotate(-45deg) scale(0.85) !important;
    }

    /* Hero text container */
    #hero-title {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }

    #hero-desc,
    #hero p {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.5 !important;
    }

    /* Hero buttons */
    #hero-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-top: 0.75rem !important;
        width: 100% !important;
        margin-bottom: 0;
    }

    #hero-buttons a {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1.5rem !important;
    }

    /* ========== SECTION SPACING ========== */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    section[id],
    section.py-16,
    section.py-12 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Section headings */
    .max-w-2xl,
    .max-w-3xl {
        max-width: 100% !important;
    }

    .mb-16 {
        margin-bottom: 1.5rem !important;
    }

    .mb-12 {
        margin-bottom: 1rem !important;
    }

    .mb-10 {
        margin-bottom: 0.75rem !important;
    }

    .mb-8 {
        margin-bottom: 0.5rem !important;
    }

    .mb-6 {
        margin-bottom: 0.5rem !important;
    }

    /* ========== GRIDS ========== */
    /* Default grid to single column */
    .grid {
        gap: 1rem !important;
    }

    .grid.lg\:grid-cols-2,
    .grid.md\:grid-cols-2,
    .grid.lg\:grid-cols-3,
    .grid.md\:grid-cols-3,
    .grid.lg\:grid-cols-4,
    .grid.md\:grid-cols-4 {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Specific grid layouts */
    .gap-8 {
        gap: 1rem !important;
    }

    .gap-6 {
        gap: 0.75rem !important;
    }

    .gap-4 {
        gap: 0.75rem !important;
    }

    .gap-12,
    .gap-16 {
        gap: 1.5rem !important;
    }

    /* ========== CARDS ========== */
    .rounded-\[2rem\],
    .rounded-\[1\.5rem\],
    .rounded-\[3rem\] {
        border-radius: 1rem !important;
    }

    .rounded-3xl,
    .rounded-2xl {
        border-radius: 1rem !important;
    }

    .rounded-xl {
        border-radius: 0.75rem !important;
    }

    .p-10,
    .p-12,
    .lg\:p-12 {
        padding: 1rem !important;
    }

    .p-8 {
        padding: 1rem !important;
    }

    .p-6 {
        padding: 0.875rem !important;
    }

    .p-4 {
        padding: 0.75rem !important;
    }

    /* ========== PRODUCTS PAGE ========== */
    /* Product cards */
    .space-y-24 {
        gap: 2rem !important;
    }

    .space-y-24>*+* {
        margin-top: 2rem !important;
    }

    /* Product specs grid - 2 columns max */
    .grid.grid-cols-2,
    [class*="grid-cols-2"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Comparison table - horizontal scroll */
    .overflow-x-auto {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    table {
        min-width: 600px !important;
        font-size: 0.7rem !important;
    }

    table th,
    table td {
        padding: 0.5rem !important;
    }

    table th {
        font-size: 0.6rem !important;
    }

    /* ========== ABOUT PAGE ========== */
    /* Timeline - stack on mobile */
    .space-y-16>*+* {
        margin-top: 1.5rem !important;
    }

    .flex.flex-col.lg\:flex-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .lg\:w-1\/2 {
        width: 100% !important;
    }

    .lg\:text-right,
    .lg\:text-left {
        text-align: left !important;
    }

    .lg\:pr-12,
    .lg\:pl-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Stats numbers */
    .text-5xl,
    .text-6xl,
    .text-4xl,
    .lg\:text-5xl {
        font-size: 2rem !important;
    }

    .md\:text-6xl {
        font-size: 2.5rem !important;
    }

    /* Certifications grid */
    .grid.lg\:grid-cols-5 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ========== CONTACT PAGE ========== */
    /* Contact form - ensure proper padding on mobile */
    #contact-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        display: block !important;
    }

    #contact-form .grid {
        display: flex !important;
        flex-direction: column !important;
    }

    #contact-form .grid>* {
        width: 100% !important;
    }

    #contact-form .space-y-6>*+* {
        margin-top: 0.75rem !important;
    }

    /* Form inputs - ensure proper horizontal padding and visibility */
    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 0.75rem 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        background-color: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        color: #111827 !important;
    }

    #contact-form input {
        background: #ffffff !important;
        color: #111827 !important;
    }

    #contact-form input::placeholder {
        color: #9ca3af !important;
    }

    #contact-form textarea {
        background: #ffffff !important;
        color: #111827 !important;
    }

    #contact-form label {
        font-size: 0.65rem !important;
        margin-bottom: 0.25rem !important;
        display: block !important;
    }

    /* CTA Section Form (not contact.php) - transparent inputs on mobile */
    .cta-section-form input,
    .cta-section-form textarea,
    .cta-section-form select {
        background-color: rgb(255 255 255 / 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }

    .cta-section-form input::placeholder,
    .cta-section-form textarea::placeholder {
        color: rgba(255, 255, 255, 0.4) !important;
    }

    .cta-section-form label {
        color: rgba(255, 255, 255, 0.6) !important;
        font-size: 0.65rem !important;
    }

    /* Ensure contact form section has proper horizontal padding */
    section.py-16.md\:py-20.lg\:py-28.bg-gray-50 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    section.py-16.md\:py-20.lg\:py-28.bg-gray-50 .max-w-7xl {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Contact form parent containers */
    section.py-16.md\:py-20.lg\:py-28.bg-gray-50 .max-w-7xl .grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Contact info section */
    section.py-12 .grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* FAQ */
    .faq-toggle {
        padding: 1rem !important;
        font-size: 0.85rem !important;
    }

    .faq-content {
        padding: 1rem !important;
    }

    /* CTA section */
    .rounded-\[2\.5rem\] {
        border-radius: 1.25rem !important;
    }

    /* ========== HOMEPAGE ========== */
    /* Industry cards */
    .grid.grid-cols-2 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .industry-card {
        padding: 0.75rem !important;
    }

    /* Stats section - single column on mobile */
    .grid.grid-cols-2.lg\:grid-cols-4 {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .bg-white\/5 {
        padding: 1rem !important;
    }

    /* Process steps */
    .grid.md\:grid-cols-2.lg\:grid-cols-4 {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* Testimonials */
    .grid.md\:grid-cols-3 {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .testimonial-card {
        padding: 1rem !important;
    }

    /* Presence section */
    .grid.md\:grid-cols-3 {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* ========== BUTTONS ========== */
    .btn-primary,
    .btn-outline {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        justify-content: center !important;
        min-height: 48px !important;
    }

    .btn-primary span,
    .btn-outline span {
        font-size: 1rem !important;
    }

    a.btn-primary,
    a.btn-outline {
        display: flex !important;
        text-align: center !important;
    }

    /* ========== FOOTER ========== */
    footer {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    footer .py-16 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    footer .grid {
        gap: 1.5rem !important;
    }

    footer .max-w-7xl>.grid {
        grid-template-columns: 1fr !important;
    }

    footer h3,
    footer h4 {
        font-size: 0.9rem !important;
    }

    footer p,
    footer span {
        font-size: 0.75rem !important;
    }

    footer a {
        font-size: 0.75rem !important;
    }

    footer address {
        font-size: 0.75rem !important;
        line-height: 1.6 !important;
    }

    footer .border-t {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 1rem !important;
    }

    footer .flex.flex-col.md\:flex-row {
        flex-direction: column !important;
        text-align: center !important;
    }

    footer .gap-12 {
        gap: 1.5rem !important;
    }

    footer .mb-16 {
        margin-bottom: 1rem !important;
    }

    footer .flex.gap-3 {
        gap: 0.5rem !important;
    }

    footer .w-10.h-10 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    /* ========== INFO FORM / CTA SECTION ========== */
    /* These styles are for the dark CTA section - use more specific selectors */
    .cta-dark .relative.bg-gray-900 {
        border-radius: 1.25rem !important;
    }

    .cta-dark .grid.lg\:grid-cols-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* ========== MOBILE MENU ========== */
    #mobile-menu {
        padding: 1.5rem !important;
        z-index: 9999 !important;
    }

    #mobile-menu .flex.flex-col.gap-6 {
        gap: 1.25rem !important;
    }

    #mobile-menu a {
        font-size: 1.25rem !important;
    }

    #mobile-menu .border-t {
        padding-top: 1rem !important;
        margin-top: 1rem !important;
    }

    /* Mobile menu overlay */
    #mobile-menu.open {
        transform: translateX(0) !important;
    }

    /* ========== BADGES & TAGS ========== */
    .inline-flex.items-center.gap-2 {
        padding: 0.25rem 0.5rem !important;
        gap: 0.25rem !important;
    }

    .inline-flex.items-center.gap-2 span {
        font-size: 0.6rem !important;
    }

    .rounded-full {
        border-radius: 9999px !important;
    }

    /* Tags in cards */
    .flex.flex-wrap.gap-2 {
        gap: 0.5rem !important;
    }

    .flex.flex-wrap.gap-2 span,
    .flex.flex-wrap.gap-2 .bg-gray-100 {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.6rem !important;
    }

    /* ========== VIDEO ========== */
    video,
    #about-video {
        height: 200px !important;
    }

    /* ========== ICONS ========== */
    /* Icon wrapper containers - ensure centering */
    .flex.items-center.justify-center,
    .flex.items-center.justify-start {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    iconify-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: scale(0.85);
    }

    .w-12.h-12,
    .w-14.h-14,
    .w-16.h-16 {
        width: 3rem !important;
        height: 3rem !important;
    }

    iconify-icon[width],
    iconify-icon[height] {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    iconify-icon[width="24"],
    iconify-icon[height="24"] {
        width: 1rem !important;
        height: 1rem !important;
    }

    iconify-icon[width="28"],
    iconify-icon[height="28"] {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    iconify-icon[width="80"] {
        width: 3rem !important;
        height: 3rem !important;
    }

    /* ========== CAPABILITIES SECTION ========== */
    /* Ensure capability cards keep centered text and icon alignment */
    #capabilities .card-hover {
        text-align: center !important;
    }

    #capabilities .rounded-3xl {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    #capabilities .mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #capabilities .mb-6 {
        margin-bottom: 0.75rem !important;
    }

    /* ========== INDUSTRIES SECTION ========== */
    /* Ensure industry cards grid has proper padding on mobile */
    #industries .grid.grid-cols-2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    #industries .industry-card {
        padding: 0.75rem !important;
    }

    #industries .grid.lg\:grid-cols-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    #industries .grid.lg\:grid-cols-2>* {
        width: 100% !important;
    }

    /* Show the industry image on mobile too */
    #industries .hidden.lg\:block {
        display: block !important;
        margin-top: 1.5rem !important;
    }

    #industries .hidden.lg\:block img {
        max-height: 200px !important;
        object-fit: cover !important;
        height: 100% !important;
        width: auto;
        margin: auto;
    }

    /* ========== NAVBAR ========== */
    /* Logo on mobile */
    .logo_image {
        width: 60px !important;
        height: 60px !important;
        padding: 0;
    }

    header.fixed,
    nav.fixed {
        /* padding-top: 0.5rem !important; */
        padding-bottom: 0.5rem !important;
    }

    /* ========== ABOUT PAGE FIXES ========== */
    /* About timeline - better mobile spacing */
    .space-y-16>*+* {
        margin-top: 1.5rem !important;
    }

    /* ========== FIXES FOR SPECIFIC ELEMENTS ========== */
    /* Make sure containers don't overflow */
    .max-w-7xl,
    .max-w-4xl,
    .max-w-5xl {
        max-width: 100% !important;
    }

    /* Padding overrides - apply only to max-width containers */
    .max-w-7xl,
    .max-w-4xl,
    .max-w-5xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Keep mx-auto for centering */
    .mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Navbar related fixes - keep navbar fixed but adjust hero */
    header.fixed,
    nav.fixed {
        position: fixed !important;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Keep flex items in row direction by default */
    /* Stacked layouts are handled by grid/flex rules above */

    /* Country flags in presence section */
    .flex.flex-wrap.justify-center.gap-4 span {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.65rem !important;
    }

    .btn-primary,
    .btn-outline,
    .btn-primary span,
    .btn-outline span,
    .inline-flex.items-center.btn-outline.gap-2 span {
        font-size: 0.8rem !important;
    }
}

@media (min-width: 1024px) {
    #hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    .lg\:pt-32 {
        padding-top: 8rem !important;
    }
}

/* Tablet adjustments (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {

    body h1,
    #hero-title {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .grid.lg\:grid-cols-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.lg\:grid-cols-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.lg\:grid-cols-2 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Index page only: fix hero image overlapping buttons on tablet */
    .index-hero #hero-image img {
        margin-top: -1rem !important;
        transform: rotate(-45deg) scale(0.9) !important;
    }
}