* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enhanced Typography and Text Alignment */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improved text wrapping for long text */
.hero-subtitle,
.gallery-subtitle,
.products-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

/* Better paragraph spacing and alignment */
p {
    margin-bottom: 1rem;
    line-height: 1.7;
    word-wrap: break-word;
    text-align: justify;
    text-justify: inter-word;
}

/* Improved heading typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    word-wrap: break-word;
    text-rendering: optimizeLegibility;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.phone-btn {
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.phone-btn i {
    margin-right: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    text-align: left;
}

.hero-locations {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f0f0f0;
    font-size: 1rem;
}

.location-item i {
    color: #ffd700;
    font-size: 1.1rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    justify-content: flex-start;
}

.feature-item span {
    font-size: 0.9rem;
}

.feature-item i {
    color: #10b981;
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Brands Section */
.brands {
    padding: 80px 0;
    background: #f8fafc;
}

.brands h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1f2937;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

/* Enhanced Brand Item Typography */
.brand-item {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.brand-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
}

.brand-item img {
    width: 120px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.brand-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    line-height: 1.4;
}

.brand-item p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: white;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Enhanced Gallery Overlay Typography */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.6;
    text-align: left;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: white;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.products-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Enhanced Product Typography */
.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    line-height: 1.4;
    word-wrap: break-word;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.spec {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.spec.warranty {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 15px;
}

.product-btn {
    display: block;
    width: 100%;
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1f2937;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-item:hover {
    background: white;
    border-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: #1d4ed8;
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.service-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 0;
    background: white;
}

.why-choose-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-choose h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1f2937;
}

.reason-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reason-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reason-item i {
    font-size: 2rem;
    color: #2563eb;
    margin-top: 5px;
}

.reason-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.reason-item p {
    color: #6b7280;
    line-height: 1.6;
}

.why-choose-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1f2937;
}

.contact-content {
    display: block;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.contact-item:hover {
    background: #ede9fe;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Enhanced Contact Details Typography */
.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
    line-height: 1.4;
}

.contact-details p {
    color: #6b7280;
    margin-bottom: 6px;
    line-height: 1.6;
    word-wrap: break-word;
    text-align: left;
}

.contact-details a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    word-wrap: break-word;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1f2937;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Enhanced Footer Typography */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    line-height: 1.4;
}

.footer-section p {
    line-height: 1.8;
    color: #d1d5db;
    word-wrap: break-word;
    text-align: left;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    color: #9ca3af;
    line-height: 1.6;
    word-wrap: break-word;
    text-align: left;
}

.footer-section ul li i {
    margin-right: 10px;
    color: #2563eb;
    width: 16px;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

/* Responsive Design */
/* iPad and Tablet (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: 50px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .products-grid {
        gap: 25px;
        padding-bottom: 15px;
    }
    
    .product-item {
        flex: 0 0 280px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr) 1fr;
        gap: 30px;
    }
}

/* iPad Portrait (768px - 834px) */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        gap: 20px;
        padding-bottom: 15px;
    }
    
    .product-item {
        flex: 0 0 260px;
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* iPad Landscape (1024px+) */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        gap: 25px;
    }
    
    .product-item {
        flex: 0 0 280px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Enhanced mobile typography */
    body {
        font-size: 16px;
        line-height: 1.7;
    }
    
    /* Better text wrapping on mobile */
    .hero-subtitle,
    .gallery-subtitle,
    .products-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 40px;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
    }
    
    .nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .logo {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .logo span {
        display: none;
    }
    
    .logo::after {
        content: "Dương Vũ";
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 80px 0 60px;
        margin-top: 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
    }
    
    .hero-locations {
        align-items: flex-start;
    }
    
    .location-item {
        font-size: 0.95rem;
        justify-content: flex-start;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.7;
        text-align: left;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        text-align: left;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: flex-start;
        width: 100%;
    }
    
    .feature-item span {
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.6;
        word-wrap: break-word;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .brands h2,
    .services h2,
    .why-choose h2,
    .products h2,
    .gallery h2,
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .brand-item {
        padding: 20px 15px;
    }
    
    .brand-item h3 {
        font-size: 1.1rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    .brand-item p {
        font-size: 0.85rem;
        line-height: 1.6;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        gap: 20px;
        padding-bottom: 10px;
    }
    
    .product-item {
        flex: 0 0 250px;
    }
    
    .product-item {
        max-width: 100%;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 1.2rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    .product-specs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .spec {
        font-size: 0.8rem;
        padding: 3px 6px;
        word-wrap: break-word;
    }
    
    .product-price {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-choose h2 {
        text-align: center;
    }
    
    .reason-item {
        padding: 15px;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    
    .reason-item p {
        line-height: 1.6;
        word-wrap: break-word;
        text-align: left;
    }
    
    .contact-content {
        display: block;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-item {
        padding: 20px 15px;
        flex-direction: row;
        text-align: left;
    }
    
    .contact-details h4 {
        font-size: 1.1rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    .contact-details p {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .footer-section p {
        line-height: 1.7;
        word-wrap: break-word;
    }
    
    .footer-section ul li {
        line-height: 1.6;
        word-wrap: break-word;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 70px 0 50px;
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .brands h2,
    .services h2,
    .why-choose h2,
    .products h2,
    .gallery h2,
    .contact h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .brand-item {
        padding: 15px 10px;
    }
    
    .products-grid {
        gap: 15px;
        padding-bottom: 10px;
    }
    
    .product-item {
        flex: 0 0 280px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 10px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.3rem;
    }
    
    .reason-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }
    
    .reason-item i {
        font-size: 1.8rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .product-image img {
        height: 180px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .contact-form h3 {
        font-size: 1.3rem;
    }
    
    .footer-section ul li {
        font-size: 0.9rem;
    }
    
    /* Footer alignment for small mobile */
    .footer-content {
        text-align: left;
    }
    
    .footer-section {
        text-align: left;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.brand-item,
.service-item,
.reason-item,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Touch and mobile optimizations */
/* iPad specific optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Better touch targets for iPad */
    .btn,
    .phone-btn,
    .product-btn {
        min-height: 48px;
        padding: 14px 28px;
        font-size: 1.1rem;
    }
    
    .product-btn {
        padding: 14px 20px;
    }
    
    /* Improve hover states for iPad */
    .brand-item:hover,
    .product-item:hover,
    .gallery-item:hover {
        transform: translateY(-8px);
    }
    
    /* Better text selection */
    .hero-subtitle,
    .gallery-subtitle,
    .products-subtitle {
        font-size: 1.15rem;
        line-height: 1.7;
    }
    
    /* Optimize form for iPad */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 16px;
        border-radius: 10px;
    }
    
    /* Contact items spacing */
    .contact-item {
        padding: 25px 20px;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
    }
    
    .contact-icon i {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    /* Better touch targets */
    .btn,
    .phone-btn,
    .product-btn,
    .contact-details a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve text readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* Improve form inputs for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    
    /* iPad Safari fixes */
    @media (min-width: 768px) {
        .form-group input,
        .form-group select,
        .form-group textarea {
            font-size: 17px; /* Better for iPad */
        }
    }
    
    /* Prevent callout on touch */
    .btn,
    .product-btn,
    .phone-btn,
    .gallery-item,
    .brand-item,
    .product-item {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection for content */
    .hero-subtitle,
    .gallery-subtitle,
    .products-subtitle,
    .contact-details p,
    .brand-item p,
    .gallery-overlay p {
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}