/* ================================================
   PURVANCHAL BIOMEDICAL SOLUTIONS
   Premium Healthcare Technology Website
   ================================================ */

/* CSS Variables */
:root {
    --primary-blue: #2563EB;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent-blue: #60a5fa;
    
    /* Green Medical Theme */
    --primary-green: #10b981;
    --green-dark: #059669;
    --green-light: #34d399;
    --green-lighter: #6ee7b7;
    --green-pale: #d1fae5;
    --green-bg: #ecfdf5;
    
    --white: #ffffff;
    --off-white: #f9fafb;
    --light-gray: #f3f4f6;
    --medium-gray: #e5e7eb;
    --dark-gray: #6b7280;
    --charcoal: #1f2937;
    --black: #111827;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--medium-gray);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-primary.large {
    padding: 18px 48px;
    font-size: 18px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 120px;
    width: auto;
    max-width: 500px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.btn-quote {
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-quote:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

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

.mobile-link {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-link:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-left {
    max-width: 600px;
}

.hero-title {
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-right {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--charcoal);
}

.floating-card svg {
    color: var(--primary-blue);
}

.card-1 {
    top: 20%;
    left: -60px;
    animation: float 5s ease-in-out infinite;
}

.card-2 {
    bottom: 15%;
    right: -40px;
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.section-title {
    margin-bottom: 24px;
}

.section-title.centered {
    text-align: center;
}

.section-description {
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.section-description.centered {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.stat p {
    font-size: 0.875rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Products Section */
.products {
    padding: 120px 0;
    background: var(--off-white);
}

.section-header {
    margin-bottom: 64px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-content {
    padding: 32px;
}

.product-content h3 {
    margin-bottom: 12px;
    color: var(--charcoal);
}

.product-content p {
    margin-bottom: 24px;
    line-height: 1.7;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    transition: var(--transition);
}

.product-link svg {
    transition: var(--transition);
}

.product-card:hover .product-link svg {
    transform: translateX(4px);
}

/* Why Choose Us */
.why-choose-us {
    padding: 120px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 64px;
}

.feature-card {
    text-align: left;
    padding: 32px;
    border-radius: 16px;
    background: var(--off-white);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.feature-icon svg {
    color: var(--primary-blue);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-card p {
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 40px;
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--off-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    color: var(--primary-blue);
}

.contact-item h4 {
    font-size: 0.875rem;
    margin-bottom: 4px;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--charcoal);
    font-weight: 500;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: #25D366;
    color: var(--white);
    border-radius: 12px;
    font-weight: 600;
    margin-top: 16px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Contact Form */
.contact-form {
    background: var(--off-white);
    padding: 40px;
    border-radius: 20px;
}

.contact-form h3 {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--charcoal);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
/* Footer - Redesigned Modern Green Theme */
.footer {
    background: linear-gradient(180deg, #064e3b 0%, #065f46 100%);
    color: var(--white);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo-image {
    height: 100px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.footer-column {
    animation: fadeInUp 0.6s ease;
}

.footer-column:first-child p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.125rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, transparent 100%);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column ul li {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.footer-column ul li::before {
    content: '→';
    color: #10b981;
    font-weight: 700;
    transition: var(--transition);
}

.footer-column ul li:hover {
    color: #10b981;
    transform: translateX(5px);
}

.footer-column ul li:hover::before {
    transform: translateX(3px);
}

.footer-column ul li a {
    color: inherit;
    text-decoration: none;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-bottom {
    padding: 32px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0 40px;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .card-1 { left: -20px; }
    .card-2 { right: -20px; }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }
    
    .about,
    .products,
    .why-choose-us,
    .contact {
        padding: 80px 0;
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .floating-card {
        font-size: 12px;
        padding: 12px 16px;
    }
    
    .card-1 { left: 0; }
    .card-2 { right: 0; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-content {
        height: 80px;
    }
    
    .logo-image {
        height: 60px;
        max-width: 250px;
    }
    
    .footer-logo-image {
        height: 75px;
        max-width: 280px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
}


/* ================================================
   ENHANCED MOBILE RESPONSIVENESS
   ================================================ */

/* Prevent horizontal overflow on all elements */
* {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Container improvements for mobile */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-right {
        order: -1;
    }
    
    .hero-image-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Tablet responsiveness */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .nav-content {
        height: 85px;
    }
    
    .logo-image {
        height: 110px !important;
        max-width: 450px !important;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .hero-image {
        max-width: 100%;
        height: auto;
        border-radius: 16px;
    }
    
    .floating-card {
        display: none; /* Hide floating cards on mobile for cleaner look */
    }
    
    .stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .products-grid,
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card,
    .product-card,
    .feature-item {
        max-width: 100%;
    }
    
    /* Footer improvements */
    .footer-content {
        gap: 32px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 14px;
    }
}

/* Mobile phone responsiveness */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .nav-content {
        height: 70px;
        padding: 0 12px;
    }
    
    .logo-image {
        height: 100px !important;
        max-width: 420px !important;
    }
    
    .mobile-menu-btn {
        padding: 8px;
    }
    
    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
    }
    
    .hero {
        padding: 85px 0 50px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 15px;
        border-radius: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-image-wrapper {
        margin-top: 32px;
    }
    
    .hero-image {
        border-radius: 12px;
    }
    
    /* Section padding */
    .about,
    .products,
    .services,
    .why-choose-us,
    .contact,
    .cta {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
        line-height: 1.25;
    }
    
    .section-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    /* Stats grid */
    .stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-item {
        padding: 16px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* Cards */
    .service-card,
    .product-card,
    .feature-item {
        padding: 20px;
    }
    
    .service-card h3,
    .product-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .service-card p,
    .product-card p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Contact form */
    .contact-form {
        padding: 24px 16px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 15px;
        padding: 12px 16px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 24px;
    }
    
    .footer-logo-image {
        height: 65px;
        max-width: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-section {
        padding: 16px 0;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 13px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .logo-image {
        height: 60px;
        max-width: 180px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* Landscape mode fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .nav-content {
        height: 60px;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .floating-card {
        display: none;
    }
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, span, a, li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

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

/* Fix for grid items */
.products-grid,
.services-grid,
.features-grid,
.stats {
    width: 100%;
    overflow: hidden;
}

.product-card,
.service-card,
.feature-item,
.stat-item {
    width: 100%;
    min-width: 0;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .nav-link,
    .mobile-link,
    a {
        -webkit-tap-highlight-color: rgba(16, 185, 129, 0.1);
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }
}
