* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    width: 100%;
}

/* Header Styles */
header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
}

/* Logo Section */
.logo-link {
    background-color: #1a2a4a;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
}

.logo-link:hover {
    background-color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.logo-icon {
    height: 24px;
    width: auto;
    display: block;
}

.logo-text {
    color: #ffffff;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.company-name {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.company-name span {
    background: linear-gradient(135deg, #4a90e2, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: max(14px, 15px);
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #4a90e2;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    font-size: max(14px, 14px);
    transition: all 0.2s ease;
    min-height: 44px;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #4a90e2;
}

/* Action Buttons Section */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-bar {
    position: relative;
}

.search-bar input {
    background: #f9f9f9;
    border: 1px solid #dcdfe3;
    border-radius: 20px;
    padding: 8px 35px 8px 15px;
    color: #2c3e50;
    font-size: max(14px, 16px);
    width: clamp(120px, 30vw, 160px);
    transition: all 0.3s ease;
    min-height: 44px;
}

.search-bar input:focus {
    outline: none;
    border-color: #4a90e2;
    width: clamp(140px, 35vw, 200px);
    background: #ffffff;
    box-shadow: 0 0 6px rgba(74, 144, 226, 0.15);
}

.search-bar i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 14px;
    pointer-events: none;
}

/* Buttons */
.mail-btn, .contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: max(14px, 14px);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    min-height: 44px;
    white-space: nowrap;
}

.mail-btn {
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #dcdfe3;
}

.mail-btn:hover {
    background: #f8f9fa;
    color: #4a90e2;
    border-color: #4a90e2;
}

.contact-btn {
    background-color: #1a2a4a;
    color: #ffffff;
    font-weight: 600;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #357abd, #2868a8);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* AI Transformation Section */
.ai-transformation-section {
    background: url("../assets/INV-BG.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 60px 20px;
    width: 100%;
}

.ai-transformation-section h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    color: #2c3e50;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
}

.ai-transform-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.ai-transform-container h2 {
    font-size: clamp(28px, 6vw, 38px);
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

/* AI Text Effect */
.ai-text-effect {
    font-weight: 900;
    background: linear-gradient(45deg, #00c6ff, #0072ff, #92fe9d, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shineEffect 3s linear infinite;
    display: inline-block;
}

@keyframes shineEffect {
    to {
        background-position: 200% center;
    }
}

.chat-interface {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: clamp(20px, 5vw, 30px);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

#ai-chat-input {
    flex-grow: 1;
    min-width: 0;
    padding: 12px 18px;
    border: 1px solid #dcdfe3;
    border-radius: 25px;
    font-size: max(16px, 16px);
    color: #34495e;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
}

#ai-chat-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
}

#ai-chat-ask-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: max(16px, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    white-space: nowrap;
    flex-shrink: 0;
}

#ai-chat-ask-btn:hover {
    background: linear-gradient(135deg, #357abd, #2868a8);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.chat-response-area {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: left;
    min-height: 80px;
    display: none;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.5s ease-out;
    width: 100%;
}

.chat-response-area p {
    margin: 0;
    font-size: max(15px, 15px);
    color: #34495e;
    word-wrap: break-word;
}

.chat-response-area strong {
    color: #2c3e50;
}

.faq-suggestions {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.faq-suggestions p {
    width: 100%;
    margin-bottom: 10px;
    color: #5a6c7d;
    font-size: max(15px, 15px);
    text-align: center;
}

.faq-btn {
    background: #f0f4f7;
    border: 1px solid #d1e2ed;
    color: #4a90e2;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: max(14px, 14px);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    text-align: center;
}

.faq-btn:hover {
    background: #e0f2f7;
    border-color: #4a90e2;
    color: #357abd;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-response-area.visible {
    display: flex;
}

/* Core Capabilities Section */
.core-capabilities-section {
    padding: 80px 20px;
    text-align: center;
    background-image: url("path/to/your-background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
}

.capabilities-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.capabilities-container h2 {
    font-size: clamp(28px, 6vw, 42px);
    color: #3c3a3a;
    margin-bottom: 50px;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
}

.capability-cards {
    display: flex;
    width: 100%;
    height: 450px;
    gap: 15px;
    max-width: 100%;
    overflow: hidden;
}

.capability-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    flex: 0 0 100px;
    transition: flex 0.7s cubic-bezier(0.05, 0.6, 0.4, 0.9), border-color 0.5s ease;
    min-width: 0;
}

.card-gradient-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%);
    z-index: 1;
    border-radius: inherit; /* Inherit border radius from parent */
}

.card-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-title {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 600;
    position: absolute;
    bottom: 20px;
    left: 10px;
    white-space: nowrap;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    transition: all 0.6s cubic-bezier(0.05, 0.6, 0.4, 0.9);
}

.card-detail-content, .read-more-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.capability-card.expanded {
    flex: 1 1 60%;
    background-color: rgba(25, 25, 40, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.capability-card.expanded .card-title {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    font-size: clamp(28px, 5vw, 32px);
    position: absolute;
    top: 30px;
    left: 30px;
    bottom: auto;
    text-align: left;
    white-space: normal;
    margin-bottom: 20px;
}

.capability-card.expanded .card-detail-content,
.capability-card.expanded .read-more-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-detail-content {
    position: absolute;
    top: 100px;
    left: 30px;
    right: 30px;
    max-width: 400px;
    text-align: left;
    margin-top: 0;
}

.card-detail-content p { 
    font-size: max(16px, 16px); 
    line-height: 1.6; 
    margin-bottom: 20px;
    text-align: left;
    word-wrap: break-word;
}

.card-detail-content strong {
    font-weight: 700;
    color: #00c6ff;
}

.read-more-btn {
    position: absolute;
    top: 180px;
    left: 30px;
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3);
}

/* Innovation & AI Section */
.innovation-section {
    background-image: url("../assets/INV-BG.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
}

.innovation-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

.innovation-heading {
    flex: 1 1 40%;
}

.innovation-heading h2 {
    font-size: clamp(36px, 8vw, 48px);
    font-weight: 800;
    color: #1a2a4a;
    line-height: 1.3;
    word-wrap: break-word;
}

.innovation-content {
    flex: 1 1 60%;
}

.innovation-content p {
    font-size: max(16px, 17px);
    color: #4a5c78;
    line-height: 1.8;
    margin-bottom: 25px;
    word-wrap: break-word;
}

.innovation-content strong {
    color: #1a2a4a;
    font-weight: 700;
}

.signature {
    margin-top: 40px;
    font-size: max(16px, 18px);
    font-style: italic;
    font-weight: 600;
    color: #1a2a4a;
    line-height: 1.6;
}

.signature span {
    font-style: normal;
    font-weight: 700;
    font-size: max(14px, 16px);
}

/* Hide menu toggle on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #2c3e50;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

/* Clients Section */
.clients-section {
    background-color: #fdfbf9;
    padding: 80px 20px;
    font-family: 'Georgia', serif;
    width: 100%;
}

.clients-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 0 20px;
}

.clients-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.clients-subheading {
    color: #888;
    font-size: max(14px, 14px);
    font-family: sans-serif;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.clients-heading {
    font-size: clamp(32px, 6vw, 42px);
    color: #222;
    line-height: 1.3;
    margin-bottom: 40px;
    word-wrap: break-word;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background-color: #f7f3f0;
    padding: 20px 15px;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box h3 {
    font-size: clamp(28px, 6vw, 36px);
    color: #333;
    margin: 0 0 5px 0;
}

.stat-box p {
    font-size: max(14px, 15px);
    color: #666;
    font-family: sans-serif;
    margin: 0;
    line-height: 1.4;
}

.clients-button {
    display: inline-block;
    font-family: sans-serif;
    padding: 14px 25px;
    border: 2px solid #222;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    font-size: max(15px, 15px);
    align-self: flex-start;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.clients-button:hover {
    background-color: #222;
    color: #fff;
}

.logo-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.logo-item {
    background-color: #f7f3f0;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 8px;
    min-width: 0;
}

.logo-item img {
    max-width: 80%;
    max-height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-item:hover img {
    transform: scale(1.05);
}

/* Testimonials Section
.testimonials-section {
    background-color: #1a2a4a;
    padding: 80px 20px;
    font-family: sans-serif;
    width: 100%;
}

.testimonials-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.testimonials-header h2 {
    font-size: clamp(24px, 5vw, 32px);
    color: #ffffff;
    font-weight: 700;
    flex: 1;
}

.slider-controls {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.slider-controls button {
    background-color: transparent;
    border: 1px solid #4a5c78;
    color: #ffffff;
    width: 44px;
    height: 44px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background-color: #4a5c78;
}

#prev-btn { border-radius: 5px 0 0 5px; }
#next-btn { border-radius: 0 5px 5px 0; border-left: none; }

.testimonial-card {
    background-color: #f7f9fc;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 8px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: 250px;
    width: 100%;
}

.testimonial-image-wrapper {
    flex-shrink: 0;
    width: clamp(100px, 20vw, 150px);
    height: clamp(100px, 20vw, 150px);
    border-radius: 8px;
    overflow: hidden;
}

#testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    color: #4a5c78;
    flex: 1;
    min-width: 0;
}

.testimonial-content .tag {
    background-color: #0072ff;
    color: #ffffff;
    font-size: max(12px, 12px);
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#testimonial-quote {
    font-size: max(15px, 16px);
    line-height: 1.7;
    margin: 0 0 20px 0;
    font-style: italic;
    word-wrap: break-word;
}

.author-details strong {
    display: block;
    font-size: max(16px, 18px);
    color: #1a2a4a;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-details span {
    font-size: max(13px, 14px);
    color: #5a6c78;
}

.testimonial-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #4a5c78;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aeb8c9;
    cursor: pointer;
    border-top: 3px solid transparent;
    padding: 10px 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
    opacity: 0.7;
    min-height: 44px;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    color: #ffffff;
    opacity: 1;
}

.thumbnail-item.active {
    border-top-color: #0072ff;
}

.thumbnail-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.thumbnail-item span {
    font-size: max(13px, 14px);
    font-weight: 500;
} */

/* Section & Container */
.modern-products-section {
    padding: 80px 20px;
    background-color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
}

.mp-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Header Styling */
.mp-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.mp-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a2a4a;
    font-weight: 800;
    margin-bottom: 15px;
}

.mp-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grid Layout */
.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Card Base Styles */
.mp-card {
    border-radius: 24px; /* Large radius like reference */
    overflow: hidden;
    position: relative;
    height: 450px; /* Fixed height for consistency */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.mp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.mp-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px;
    position: relative;
}

/* Theme Colors (Like the Virtu/ParkPoolr reference) */
.theme-runner {
    background: linear-gradient(135deg, #0f172a, #1e293b); /* Dark Navy */
    color: white;
}

.theme-demon {
    background: linear-gradient(135deg, #450a0a, #7f1d1d); /* Deep Red */
    color: white;
}

.theme-omni {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0); /* Light Green */
    color: #1a2a4a;
}

/* Top Bar (Tag + Dots) */
.mp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mp-tag {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.mp-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.4;
    margin-left: 5px;
}

/* Image Wrapper & Headline */
.mp-image-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mp-image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

/* The Big Text overlaying the image area */
.mp-headline h3 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.text-dark h3 {
    color: #1a2a4a;
}

/* Slide-up Overlay Details */
.mp-overlay-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95); /* Glass effect */
    backdrop-filter: blur(10px);
    padding: 30px;
    transform: translateY(100%); /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Specific styling for Dark Theme Overlays if needed */
.theme-runner .mp-overlay-details, 
.theme-demon .mp-overlay-details {
    background: rgba(15, 23, 42, 0.95);
    color: white;
}
.theme-omni .mp-overlay-details {
    background: rgba(255, 255, 255, 0.95);
    color: #1a2a4a;
}

.mp-card:hover .mp-overlay-details {
    transform: translateY(0); /* Slide up on hover */
}

.mp-card:hover img {
    transform: scale(0.95) translateY(-10px); /* Shrink image slightly */
}

/* Details Text */
.mp-overlay-details h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.mp-overlay-details p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Buttons */
.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

/* Button Colors per theme */
.theme-runner .mp-btn { background: white; color: #0f172a; }
.theme-demon .mp-btn { background: white; color: #7f1d1d; }
.theme-omni .mp-btn { background: #1a2a4a; color: white; }

.mp-btn:hover {
    opacity: 0.9;
    padding-right: 25px; /* Arrow animation */
}

.mp-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
    color: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mp-grid {
        grid-template-columns: 1fr;
    }
    .mp-card {
        height: auto;
        min-height: 450px;
    }
    /* On mobile, showing details by default might be better, 
       or keep slide up if using tap */
}

/* Latest Products Section */
.products-section {
    background-color: #f7f9fc;
    padding: 80px 20px;
    font-family: sans-serif;
    width: 100%;
}

.products-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.products-heading {
    font-size: clamp(32px, 6vw, 42px);
    color: #1a2a4a;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    word-wrap: break-word;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.product-card {
    aspect-ratio: 4 / 3;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-height: 250px;
}

.card-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 15px;
    color: #ffffff;
    background-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%), var(--bg-image);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.product-tag {
    background-color: #0072ff;
    color: #ffffff;
    font-size: max(12px, 12px);
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    align-self: flex-start;
    white-space: nowrap;
}

.card-front h3 {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    word-wrap: break-word;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a2a4a;
    color: #f7f9fc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.card-back h4 {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 700;
    margin: 0 0 15px 0;
    word-wrap: break-word;
}

.card-back p {
    font-size: max(14px, 16px);
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.9;
    word-wrap: break-word;
}

.product-button {
    background-color: #0072ff;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: max(14px, 14px);
    white-space: nowrap;
}

.product-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.product-card:hover .card-front {
    transform: translateY(-100%);
    opacity: 0.5;
}

.product-card:hover .card-back {
    transform: translateY(0);
}

/* Site Footer */
.site-footer {
    background-color: #1a2a4a;
    color: #aeb8c9;
    padding: 60px 20px 20px 20px;
    font-family: sans-serif;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2a3f6a;
}

.footer-column h4 {
    color: #ffffff;
    font-size: max(16px, 18px);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #aeb8c9;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: max(14px, 14px);
    line-height: 1.5;
    display: block;
    padding: 2px 0;
}

.footer-column a:hover {
    color: #00c6ff;
}

.about-column .footer-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-decoration: none;
}

.about-column .footer-logo-icon { 
    height: 28px; 
    width: auto; 
    flex-shrink: 0;
}

.about-column .footer-logo-text { 
    color: #ffffff; 
    font-size: clamp(18px, 4vw, 22px); 
    font-weight: 700; 
    text-transform: uppercase; 
}

.footer-address, .footer-contact {
    font-size: max(13px, 14px);
    line-height: 1.7;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.footer-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: max(14px, 15px);
    padding: 8px 0;
    transition: color 0.3s ease;
}

.footer-directions:hover { 
    color: #00c6ff; 
}

.footer-column p {
    font-size: max(13px, 14px);
    line-height: 1.7;
    word-wrap: break-word;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #4a5c78;
    border-radius: 50%;
    color: #aeb8c9;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.social-icons a:hover {
    background-color: #0072ff;
    border-color: #0072ff;
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: max(12px, 13px);
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #aeb8c9;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 0;
    font-size: max(12px, 13px);
}

.footer-legal-links a:hover { 
    color: #ffffff; 
}

.footer-copyright p { 
    margin: 0;
    font-size: max(12px, 13px);
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */

@media (max-width: 768px) {
    /* Global mobile optimization */
    body {
        font-size: max(14px, 16px);
        overflow-x: hidden;
    }

    /* Header Mobile */
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 12px 16px;
        position: relative;
    }
    
    .logo-link {
        padding: 6px 12px;
        gap: 8px;
        order: 1;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: clamp(14px, 4vw, 16px);
    }
    
    .menu-toggle {
        display: block;
        order: 2;
        z-index: 1003;
        flex-shrink: 0;
    }
    
    .action-buttons {
        width: 100%;
        order: 3;
        justify-content: flex-end;
        margin-top: 8px;
        gap: 8px;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .mail-btn, .contact-btn {
        padding: 8px 14px;
        font-size: max(13px, 14px);
        min-height: 40px;
        gap: 4px;
        transition: all 0.3s ease;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .search-bar {
        position: relative;
        flex-grow: 0;
        flex-shrink: 0;
        transition: flex-grow 0.3s ease;
    }
    
    .search-bar input {
        width: 40px;
        font-size: max(16px, 16px);
        min-height: 40px;
        padding-left: 35px;
        padding-right: 10px;
        transition: width 0.3s ease;
        cursor: pointer;
        box-sizing: border-box;
    }
    
    .search-bar:focus-within {
        flex-grow: 1;
    }
    
    .search-bar:focus-within input {
        width: 100%;
        max-width: 100%;
        cursor: text;
    }
    
    .action-buttons:has(.search-bar:focus-within) .mail-btn,
    .action-buttons:has(.search-bar:focus-within) .contact-btn {
        opacity: 0;
        visibility: hidden;
        width: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    
    nav {
        width: 100%;
        order: 4;
    }
    
    .nav-menu {
        flex-direction: column;
        background: #ffffff;
        border-top: 1px solid #eaeaea;
        gap: 0;
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1002;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 16px 20px;
        display: block;
        width: 100%;
        min-height: 48px;
        font-size: max(16px, 16px);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
        background: #f8f9fa;
    }
    
    .nav-item.open .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 14px 30px;
        min-height: 48px;
        font-size: max(15px, 15px);
    }

    /* AI Transformation Section Mobile */
    .ai-transformation-section {
        padding: 50px 16px;
        min-height: 350px;
        background-attachment: scroll;
    }

    .ai-transform-container {
        padding: 0 16px;
    }

    .ai-transform-container h2 {
        font-size: clamp(24px, 8vw, 30px);
        margin-bottom: 25px;
    }

    .chat-interface {
        padding: 20px 16px;
        margin: 0;
    }

    .chat-input-area {
        flex-direction: column;
        gap: 10px;
    }

    #ai-chat-input,
    #ai-chat-ask-btn {
        width: 100%;
    }

    .faq-suggestions {
        justify-content: center;
        gap: 6px;
    }

    .faq-suggestions p {
        text-align: center;
        font-size: 14px;
    }

    .faq-btn {
        font-size: 13px;
        padding: 8px 12px;
        min-height: 40px;
    }

    /* Core Capabilities Section Mobile */
    .core-capabilities-section {
        padding: 60px 16px;
        background-attachment: scroll;
    }

    .capabilities-container {
        padding: 0 16px;
    }

    .capabilities-container h2 {
        font-size: clamp(24px, 8vw, 32px);
        margin-bottom: 30px;
    }

    .capability-cards {
        flex-direction: column;
        gap: 15px;
        height: auto;
        width: 100%;
    }

    .capability-card {
        flex: none;
        height: 120px;
        overflow: hidden;
        border-radius: 15px;
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 280px;
    }

    /* Force background image to respect border radius */
    .capability-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        border-radius: 15px;
        z-index: 0;
    }

    .capability-card.expanded {
        height: auto;
        min-height: 350px;
        overflow: hidden; /* Changed from visible to hidden */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 20px;
        align-items: stretch;
        border-radius: 15px; /* Ensure border radius is applied */
    }

    .capability-card .card-content {
        position: relative;
        padding: 20px 16px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 2;
    }

    .capability-card.expanded .card-content {
        justify-content: flex-start;
        height: auto;
        min-height: 310px;
        padding: 20px 16px;
    }

    .capability-card .card-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        right: auto !important;
        writing-mode: horizontal-tb !important;
        transform: none !important;
        font-size: clamp(18px, 5vw, 22px);
        font-weight: 700;
        color: white;
        text-align: center;
        white-space: normal;
        margin: 0 !important;
        padding: 0 10px;
        order: 1;
        width: 100%;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
        letter-spacing: 0.5px;
        line-height: 1.2;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        transition: all 0.4s ease;
    }

    .capability-card.expanded .card-title {
        font-size: clamp(24px, 6vw, 28px);
        font-weight: 800;
        margin: 0 0 25px 0 !important;
        order: 0;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
        letter-spacing: 1px;
        text-align: left;
        padding: 0;
        background: linear-gradient(135deg, #ffffff, #00c6ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: white;
    }

    .card-detail-content {
        position: relative;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0;
        overflow: hidden;
        transform: translateY(20px);
        margin: 0;
        padding: 0 10px;
        order: 2;
        transition: all 0.5s ease 0.2s;
        width: 100%;
    }

    .capability-card.expanded .card-detail-content {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 300px;
        transform: translateY(0);
        margin: 0 0 25px 0;
        padding: 0 10px;
    }

    .card-detail-content p {
        font-size: max(15px, 15px);
        line-height: 1.6;
        margin: 0 0 20px 0;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
        word-wrap: break-word;
    }

    .read-more-btn {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0;
        overflow: hidden;
        transform: translateY(20px);
        display: inline-block;
        order: 3;
        margin: 0 auto !important;
        padding: 0;
        background: linear-gradient(135deg, #00c6ff, #0072ff);
        color: white;
        text-decoration: none;
        border-radius: 25px;
        font-weight: 600;
        font-size: max(14px, 14px);
        transition: all 0.5s ease 0.4s;
        clear: both;
        width: auto;
        max-width: 200px;
        box-shadow: 0 3px 10px rgba(0, 198, 255, 0.3);
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }

    .capability-card.expanded .read-more-btn {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 50px;
        transform: translateY(0) !important;
        padding: 12px 28px !important;
        margin: 10px auto 0 auto !important;
        pointer-events: auto;
        cursor: pointer;
        display: flex;
    }

    .capability-card.expanded .read-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5);
    }

    .card-gradient-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.1) 100%);
        z-index: 1;
        border-radius: 15px; /* Match parent border radius */
    }

    /* Innovation Section Mobile */
    .innovation-section {
        padding: 60px 16px;
        background-attachment: scroll;
    }

    .innovation-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 16px;
    }

    .innovation-heading h2 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .innovation-content {
        text-align: left;
        width: 100%;
    }

    .innovation-content p {
        font-size: max(15px, 16px);
        margin-bottom: 20px;
    }
    
    .signature {
        text-align: center;
        font-size: max(15px, 16px);
        margin-top: 30px;
    }

    .signature span {
        font-size: max(13px, 14px);
    }

    /* Clients Section Mobile */
    .clients-section {
        padding: 60px 16px;
    }

    .clients-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 16px;
    }

    .clients-info, .logo-grid {
        width: 100%;
    }
    
    .logo-grid {
        max-width: 600px;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .clients-heading {
        font-size: clamp(28px, 8vw, 32px);
        margin-bottom: 30px;
    }
    
    .stats-grid {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .stat-box {
        padding: 15px 12px;
        min-height: 80px;
    }
    
    .stat-box h3 {
        font-size: clamp(24px, 8vw, 28px);
    }
    
    .clients-button {
        padding: 12px 20px;
        font-size: max(14px, 14px);
        min-height: 44px;
        align-self: center;
    }

    .logo-item {
        height: 80px;
        padding: 15px 10px;
    }

    /* Testimonials Section Mobile */
    .testimonials-section {
        padding: 60px 16px;
    }

    .testimonials-container {
        padding: 0 16px;
    }

    .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .testimonials-header h2 {
        font-size: clamp(20px, 6vw, 28px);
        margin-bottom: 10px;
    }

    .slider-controls {
        align-self: flex-end;
    }

    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px 16px;
        min-height: auto;
    }

    .testimonial-image-wrapper {
        width: clamp(80px, 25vw, 120px);
        height: clamp(80px, 25vw, 120px);
    }

    .testimonial-content {
        width: 100%;
    }

    #testimonial-quote {
        font-size: max(14px, 15px);
        margin-bottom: 15px;
    }

    .author-details {
        margin-top: 15px;
    }

    .author-details strong {
        font-size: max(15px, 16px);
    }

    .testimonial-thumbnails {
        gap: 10px;
        margin-top: 15px;
        padding-top: 10px;
    }

    .thumbnail-item {
        gap: 8px;
        padding: 8px 3px;
    }

    .thumbnail-item img {
        width: 32px;
        height: 32px;
    }

    .thumbnail-item span {
        font-size: max(12px, 13px);
    }

    /* Products Section Mobile */
    .products-section {
        padding: 60px 16px;
    }
    
    .products-container {
        padding: 0 16px;
    }

    .products-heading {
        font-size: clamp(28px, 8vw, 32px);
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        min-height: 200px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .product-card.active .card-front {
        transform: translateY(-100%);
        opacity: 0.5;
    }
    
    .product-card.active .card-back {
        transform: translateY(0);
    }
    
    .card-front,
    .card-back {
        padding: 20px 16px;
    }
    
    .card-back {
        padding: 25px 16px;
    }
    
    .product-button {
        padding: 10px 20px;
        font-size: max(13px, 14px);
        min-height: 40px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 40px 16px 20px;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
        gap: 30px 20px;
        padding-bottom: 30px;
    }

    /* Company info spans full width at top */
    .about-column {
        grid-column: 1 / -1;
        text-align: left;
        margin-bottom: 10px;
    }

    /* Services and Industries - first row */
    .services-column {
        grid-column: 1 / 2;
    }

    .industries-column {
        grid-column: 2 / 3;
    }

    /* Company and Connect - second row */
    .company-column {
        grid-column: 1 / 2;
    }

    .connect-column {
        grid-column: 2 / 3;
    }

    .about-column .footer-logo-link {
        justify-content: flex-start;
    }

    .footer-directions {
        justify-content: flex-start;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-column h4 {
        font-size: max(15px, 16px);
        margin-bottom: 12px;
    }

    .footer-column ul li {
        margin-bottom: 8px;
    }

    .footer-column a {
        padding: 4px 0;
        font-size: max(13px, 14px);
        line-height: 1.4;
    }

    .footer-address, .footer-contact {
        font-size: max(13px, 13px);
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .footer-column p {
        font-size: max(13px, 13px);
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 20px;
    }

    .footer-legal-links {
        justify-content: center;
        gap: 15px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

/* Very Small Screens (< 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 8px 12px;
    }
    
    .action-buttons {
        gap: 6px;
        margin-top: 6px;
    }
    
    .mail-btn, .contact-btn {
        padding: 6px 10px;
        font-size: max(12px, 13px);
        min-height: 36px;
    }
    
    .search-bar input {
        width: 36px;
        min-height: 36px;
    }

    .ai-transformation-section,
    .core-capabilities-section,
    .innovation-section,
    .clients-section,
    .testimonials-section,
    .products-section,
    .site-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ai-transform-container,
    .capabilities-container,
    .innovation-container,
    .clients-container,
    .testimonials-container,
    .products-container,
    .footer-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .capability-card {
        height: 100px;
        min-width: 260px;
    }
    
    .capability-card.expanded {
        min-height: 320px;
    }
    
    .card-content {
        padding: 15px 12px;
    }
    
    .capability-card .card-title {
        font-size: clamp(16px, 5vw, 18px) !important;
        padding: 0 5px;
    }
    
    .capability-card.expanded .card-title {
        font-size: clamp(20px, 6vw, 24px) !important;
        margin-bottom: 20px !important;
    }
    
    .card-detail-content p {
        font-size: max(14px, 14px);
    }
    
    .read-more-btn {
        font-size: max(13px, 13px) !important;
    }
    
    .capability-card.expanded .read-more-btn {
        padding: 10px 24px !important;
    }

    .capability-card.expanded .card-content::after {
        content: "";
        display: table;
        clear: both;
    }

    .product-card {
        min-height: 180px;
    }
    
    .card-front,
    .card-back {
        padding: 15px 12px;
    }
    
    .card-back {
        padding: 20px 12px;
    }
    
    .product-tag {
        padding: 4px 8px;
        font-size: max(11px, 11px);
    }

    .thumbnail-item span {
        display: none;
    }

    .thumbnail-item {
        padding: 8px;
        border-radius: 50%;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    /* Footer adjustments for very small screens */
    .footer-main {
        gap: 25px 15px;
    }

    .footer-column h4 {
        font-size: max(14px, 15px);
        margin-bottom: 10px;
    }

    .footer-column ul li {
        margin-bottom: 6px;
    }

    .footer-column a {
        font-size: max(12px, 13px);
    }

    .footer-address, .footer-contact, .footer-column p {
        font-size: max(12px, 12px);
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .about-column .footer-logo-text {
        font-size: clamp(16px, 4vw, 18px);
    }

    .about-column .footer-logo-icon {
        height: 24px;
    }
}

/* Ensure touch-friendly elements on mobile */
@media (max-width: 768px) {
    button, input, select, textarea, a[href], [role="button"] {
        min-height: 44px;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    input[type="text"], input[type="email"], input[type="search"], 
    input[type="password"], textarea {
        font-size: max(16px, 16px);
        -webkit-appearance: none;
    }
    
    html {
        scroll-behavior: smooth;
    }
    
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}