/* ============================================
   Industrial Manufacturing Portal - Styles
   Color Scheme: Industrial Cyber
   ============================================ */

:root {
    /* Primary Colors - Dark Backgrounds */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-card: #252b47;
    --bg-hover: #2d3555;
    --bg-overlay: rgba(10, 14, 39, 0.95);
    
    /* Accent Colors */
    --accent-primary: #00f5ff;
    --accent-secondary: #7b2cbf;
    --accent-tertiary: #ff006e;
    --accent-electric: #39ff14;
    
    /* Text Colors */
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --text-accent: #00f5ff;
    
    /* System Colors */
    --success: #39ff14;
    --warning: #ffaa00;
    --error: #ff006e;
    --info: #00f5ff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #7b2cbf 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    --gradient-accent: linear-gradient(135deg, #00f5ff 0%, #ff006e 100%);
    --gradient-text: linear-gradient(135deg, #00f5ff 0%, #7b2cbf 100%);
    
    /* Shadows & Effects */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

h1 {
    font-size: 3rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--accent-secondary);
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-primary);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition-normal);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-normal);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    background: rgba(0, 245, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.5rem;
    z-index: 10000;
    position: relative;
    transition: var(--transition-normal);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 245, 255, 0.1);
}

/* Hamburger to X animation when menu is active */
.nav-links.active ~ nav .mobile-menu-toggle,
body:has(.nav-links.active) nav .mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
}

.mobile-menu-toggle.active {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
}

.mobile-menu-toggle.active::before {
    content: '✕';
    font-size: 1.5rem;
    line-height: 1;
}

.mobile-menu-toggle.active {
    font-size: 0;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../image/2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    transform: scale(1.1);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.7);
    z-index: 1;
}



.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition-normal);
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-text p {
    font-size: 1.3rem;
    max-width: 100%;
    margin: 0 0 2rem 0;
    color: var(--text-primary);
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: var(--transition-slow);
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
}

.card h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* ============================================
   Sections
   ============================================ */

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ============================================
   Grid Layouts
   ============================================ */

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   News/Articles
   ============================================ */

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-primary);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-primary);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-column p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
    display: inline-block;
    position: relative;
    padding-left: 1.2rem;
}

.footer-column ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
    padding-left: 1.5rem;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-info a:hover {
    color: var(--accent-primary);
}

.footer-contact-info a::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-bottom p:last-child {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-normal);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    main {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Ensure all containers don't overflow */
    * {
        max-width: 100%;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        border: none;
        z-index: 9999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        color: var(--text-primary);
        background: var(--bg-card);
        border: 2px solid var(--accent-primary);
        border-radius: 8px;
        text-align: center;
        transition: var(--transition-normal);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--accent-primary);
        color: var(--bg-primary);
        border-color: var(--accent-primary);
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu overlay effect */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .hero {
        background-attachment: scroll;
    }

    .hero::before {
        background-attachment: scroll;
        filter: blur(5px);
        -webkit-filter: blur(5px);
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-wrapper .hero-text .btn,
    .hero-wrapper .hero-text .btn-primary,
    .hero-wrapper .hero-text .btn-secondary {
        justify-content: center;
    }

    /* Typography - Headings */
    h1 {
        font-size: 2rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        margin-bottom: 0.875rem;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0.75rem;
    }

    h4 {
        font-size: 1.25rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0.625rem;
    }

    h5, h6 {
        font-size: 1.1rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0.5rem;
    }

    /* Section Titles */
    .section-title h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 0.5rem;
    }

    .section-title p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    section {
        padding: 3rem 1rem;
        overflow-x: hidden;
    }

    /* Optimization section responsive */
    #optimization > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    #optimization [style*="position: sticky"] {
        position: static !important;
        margin-top: 2rem;
    }

    /* Implementation section responsive */
    #implementation > div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #implementation [style*="position: sticky"] {
        position: static !important;
    }

    /* Understanding Factoring section responsive */
    #what-is-factoring > div[style*="max-width: 900px"] {
        max-width: 100% !important;
        margin: 0 auto 2rem !important;
    }
}

/* ============================================
   Utilities
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============================================
   Animations
   ============================================ */


/* ============================================
   Contact Page Styles
   ============================================ */

.contact-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: block;
}

/* Form Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-normal);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: var(--bg-card);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Google Maps Container */
.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) invert(5%) hue-rotate(200deg);
    transition: var(--transition-normal);
}

.map-container:hover iframe {
    filter: grayscale(10%) invert(3%) hue-rotate(200deg);
}

/* Business Hours */
.business-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--accent-primary);
    align-items: center;
}

.business-hours-row:last-child {
    border-bottom: none;
}

/* Contact Info Cards */
.contact-info-card {
    text-align: center;
    padding: 2rem;
}

.contact-info-card h3 {
    margin-top: 0.5rem;
}

/* Form Success/Error Messages */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: rgba(57, 255, 20, 0.1);
    border: 2px solid var(--success);
    color: var(--text-primary);
}

.form-message.error {
    background: rgba(255, 0, 110, 0.1);
    border: 2px solid var(--error);
    color: var(--text-primary);
}

/* ============================================
   Legal Documents Styles
   ============================================ */

/* Tables for Cookie Policy */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

table thead tr {
    background: var(--bg-card);
}

table th {
    padding: 1rem;
    text-align: left;
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    font-weight: 600;
}

table td {
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--accent-primary);
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover {
    background: rgba(0, 245, 255, 0.05);
}

/* Legal document sections */
.legal-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-section .card {
    margin-bottom: 2rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.legal-section li {
    margin: 0.75rem 0;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
}

.legal-section li span[style*="position: absolute"] {
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Responsive tables */
@media (max-width: 768px) {
    /* Table wrapper for proper scrolling */
    div[style*="overflow-x: auto"],
    .table-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1rem 0;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        padding: 0;
        position: relative;
    }

    /* Table container with horizontal scroll */
    table {
        font-size: 0.85rem;
        width: 100%;
        max-width: 100%;
        border-collapse: collapse;
        margin: 0;
        display: table;
    }

    /* Ensure table doesn't shrink below content width on mobile */
    div[style*="overflow-x: auto"] table {
        min-width: 600px;
        width: 100%;
    }
    
    table th,
    table td {
        padding: 0.75rem 0.5rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-width: 100px;
        max-width: 200px;
    }

    /* Allow text wrapping in table cells on mobile */
    table th:not(:first-child),
    table td:not(:first-child) {
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-contact-info {
        align-items: center;
    }

    /* Card responsive */
    .card {
        padding: 1.5rem;
        overflow-x: hidden;
    }

    /* Container responsive */
    .container {
        padding: 0 1rem;
    }

    /* Legal section responsive */
    .legal-section {
        padding: 2rem 1rem;
    }

    /* Map container responsive */
    .map-container {
        height: 350px;
    }

    /* Grid responsive */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Nav responsive */
    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    /* Hero responsive */
    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    /* Override inline styles for mobile */
    section[style*="padding"] {
        padding: 3rem 1rem !important;
    }

    div[style*="max-width"] {
        max-width: 100% !important;
    }

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

    /* Article cards responsive */
    .article-card {
        margin-bottom: 1.5rem;
    }

    .article-card-content {
        padding: 1.25rem;
    }

    /* Buttons responsive */
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    div[style*="display: flex"][style*="gap"] {
        flex-direction: column;
        gap: 1rem !important;
    }

    div[style*="justify-content: flex-start"] {
        justify-content: center !important;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 2rem 0.75rem;
    }

    .card {
        padding: 1rem;
    }

    table {
        font-size: 0.75rem;
    }

    div[style*="overflow-x: auto"] table {
        min-width: 500px;
    }

    table th,
    table td {
        padding: 0.5rem 0.375rem;
        min-width: 80px;
        max-width: 150px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    nav {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Section titles on extra small screens */
    .section-title {
        padding: 0 0.5rem;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    /* Cards on extra small screens */
    .card {
        margin-bottom: 1rem;
    }

    /* Hero on extra small screens */
    .hero {
        padding-top: 60px;
        min-height: 80vh;
    }

    .hero-content {
        padding: 1rem 0.75rem;
    }

    /* Tables on extra small screens */
    div[style*="overflow-x: auto"] table {
        min-width: 450px;
    }
}

