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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    margin-bottom: 2rem;
}

.hero-feature {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fff;
    color: #2563eb;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #2563eb;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-placeholder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-placeholder i {
    font-size: 3rem;
    opacity: 0.7;
}

.hero-placeholder .fa-globe {
    color: #22c55e;
}

.hero-placeholder .fa-truck {
    color: #f59e0b;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.9rem;
    color: #666;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-top: 0.2rem;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #fff;
}

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

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.service-card.product-category {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 4px solid #2563eb;
}

.service-card.product-category:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.3rem;
    color: #2563eb;
    margin-top: 0.3rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

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

/* Footer */
.footer {
    background: #1e293b;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: #2563eb;
    font-size: 1.3rem;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #1d4ed8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

.footer-bottom p {
    color: #94a3b8;
}

/* Auto-detect device and show hamburger menu when needed */
@media screen and (max-width: 1024px) {
    /* Enhanced Navigation */
    .nav-container {
        padding: 0.8rem 15px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        display: block;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(37, 99, 235, 0.1);
        transform: translateX(5px);
    }

    .nav-toggle {
        display: flex;
        padding: 0.5rem;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    .nav-toggle:hover {
        background-color: rgba(0,0,0,0.05);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Enhanced Logo */
    .logo-image {
        height: 35px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }

    /* Hero Section Optimizations */
    .hero {
        padding: 90px 0 60px;
        min-height: 90vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        margin-bottom: 2rem;
    }
    
    .hero-feature {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 1rem;
        text-align: center;
    }

    .hero-placeholder {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    /* Section Spacing */
    .about, .services, .contact {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 3rem;
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .stat h4 {
        font-size: 1.8rem;
    }

    .about-features {
        gap: 2rem;
    }
    
    .feature {
        text-align: left;
        padding: 1rem;
        background: rgba(255,255,255,0.8);
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    
    .feature h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin: 0 10px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
        padding: 2rem 1.5rem;
        margin: 0 10px;
    }
    
    .contact-item {
        padding: 1rem;
        background: rgba(255,255,255,0.8);
        border-radius: 10px;
        margin-bottom: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 1rem;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0.7rem 10px;
    }
    
    .logo-image {
        height: 32px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        top: 60px;
        padding: 1.5rem 0;
    }

    /* Hero Section */
    .hero {
        padding: 80px 0 50px;
        min-height: 85vh;
    }
    
    .hero-container {
        padding: 0 10px;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-feature {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 0.95rem;
        max-width: 260px;
    }

    .hero-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .hero-placeholder i {
        font-size: 2.5rem;
    }

    /* Sections */
    .about, .services, .contact {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }

    /* About Section */
    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.3rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }
    
    .stat {
        text-align: center;
        min-width: 100px;
    }
    
    .stat h4 {
        font-size: 1.6rem;
    }
    
    .stat p {
        font-size: 0.9rem;
    }

    .feature {
        padding: 1.2rem 1rem;
        margin: 0 5px;
    }
    
    .feature h4 {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }
    
    .feature p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Services */
    .services-grid {
        gap: 1.2rem;
    }
    
    .service-card {
        padding: 1.5rem 1.2rem;
        margin: 0 5px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }
    
    .service-icon i {
        font-size: 1.6rem;
    }

    /* Contact */
    .contact-content {
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem 1.2rem;
        margin: 0 5px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .contact-item {
        padding: 1rem 0.8rem;
        margin: 0 5px 1rem;
    }
    
    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 0.8rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.service-card:hover .service-icon {
    animation: pulse 0.6s ease-in-out;
}

/* Mobile-Specific Enhancements */
/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    
    .service-card:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .nav-link:hover {
        background-color: rgba(37, 99, 235, 0.1);
        transform: none;
    }
}

/* Improve touch targets */
.nav-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    min-height: 44px;
    min-width: 44px;
}

.nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prevent zoom on input focus (iOS) */
.form-group input,
.form-group textarea {
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Add safe area for devices with notches */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Optimize scroll performance on mobile */
.hero-image,
.service-card,
.feature,
.contact-item {
    will-change: transform;
    transform: translateZ(0);
}

/* Better mobile menu overlay */
@media screen and (max-width: 768px) {
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        backdrop-filter: blur(2px);
    }
}

/* Loading states for better perceived performance */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in {
        transition: none;
    }
}
