/* ===== HOME PAGE SPECIFIC STYLES ===== */

/* Hero Section - Reduced Size */
/* Update your hero section in home-styles.css */

.hero {
    padding: 70px 0 50px;
    background: 
        linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%),
        /* Subtle geometric pattern */
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dark vehicle outlines using pseudo-elements */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15; /* Increased opacity for better visibility */
    background-image: 
        /* Car - Top left */
        url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="70" viewBox="0 0 120 70"><path d="M10 35 Q25 20 40 35 Q55 50 70 35 Q85 20 100 35 V55 H10 Z" fill="none" stroke="%23000000" stroke-width="1.5"/><circle cx="35" cy="55" r="9" fill="none" stroke="%23000000" stroke-width="1.5"/><circle cx="85" cy="55" r="9" fill="none" stroke="%23000000" stroke-width="1.5"/></svg>'),
        
        /* Tractor - Top right */
        url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="90" viewBox="0 0 140 90"><rect x="20" y="20" width="100" height="40" fill="none" stroke="%23000000" stroke-width="1.5"/><rect x="30" y="30" width="80" height="20" fill="none" stroke="%23000000" stroke-width="1.5"/><circle cx="40" cy="70" r="12" fill="none" stroke="%23000000" stroke-width="1.5"/><circle cx="100" cy="70" r="12" fill="none" stroke="%23000000" stroke-width="1.5"/><rect x="110" y="25" width="20" height="10" fill="none" stroke="%23000000" stroke-width="1.5"/></svg>'),
        
        /* Pickup Truck - Bottom left */
        url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="130" height="80" viewBox="0 0 130 80"><path d="M10 40 Q30 20 50 40 V60 H10 Z" fill="none" stroke="%23000000" stroke-width="1.5"/><rect x="50" y="20" width="70" height="40" fill="none" stroke="%23000000" stroke-width="1.5"/><circle cx="35" cy="65" r="10" fill="none" stroke="%23000000" stroke-width="1.5"/><circle cx="95" cy="65" r="10" fill="none" stroke="%23000000" stroke-width="1.5"/></svg>'),
        
        /* Truck - Bottom right */
        url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="90" viewBox="0 0 160 90"><rect x="10" y="20" width="140" height="40" fill="none" stroke="%23000000" stroke-width="1.5"/><rect x="20" y="30" width="30" height="20" fill="none" stroke="%23000000" stroke-width="1.5"/><circle cx="40" cy="70" r="12" fill="none" stroke="%23000000" stroke-width="1.5"/><circle cx="120" cy="70" r="12" fill="none" stroke="%23000000" stroke-width="1.5"/><rect x="140" y="25" width="10" height="30" fill="none" stroke="%23000000" stroke-width="1.5"/></svg>'),
        
        /* Bike/Motorcycle - Center */
        url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="70" viewBox="0 0 100 70"><circle cx="25" cy="45" r="12" fill="none" stroke="%23000000" stroke-width="1.5"/><circle cx="75" cy="45" r="12" fill="none" stroke="%23000000" stroke-width="1.5"/><path d="M25 45 L50 15 L75 45" fill="none" stroke="%23000000" stroke-width="1.5"/><rect x="47" y="18" width="6" height="15" fill="none" stroke="%23000000" stroke-width="1.5"/></svg>');
    
    background-repeat: no-repeat;
    background-position: 
        /* Positioning the vehicles */
        5% 15%,      /* Car - top left */
        90% 10%,     /* Tractor - top right */
        10% 75%,     /* Pickup - bottom left */
        85% 70%,     /* Truck - bottom right */
        50% 50%;     /* Bike - center */
    
    background-size: 
        100px auto,   /* Car */
        120px auto,   /* Tractor */
        110px auto,   /* Pickup */
        140px auto,   /* Truck */
        80px auto;    /* Bike */
    
    z-index: 1;
    
    /* Optional: Add subtle floating animation */
    animation: floatVehicle 30s infinite ease-in-out;
}

@keyframes floatVehicle {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(5px) translateX(-5px);
    }
    75% {
        transform: translateY(-5px) translateX(3px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Add text shadow for better readability */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero::before {
        opacity: 0.1; /* Reduce opacity on mobile */
        background-size: 
            70px auto,   /* Car */
            80px auto,   /* Tractor */
            75px auto,   /* Pickup */
            90px auto,   /* Truck */
            60px auto;   /* Bike */
        
        background-position: 
            5% 20%,      /* Car */
            90% 15%,     /* Tractor */
            10% 80%,     /* Pickup */
            85% 75%,     /* Truck */
            50% 55%;     /* Bike */
    }
}

@media (max-width: 480px) {
    .hero::before {
        opacity: 0.08; /* Further reduce on very small screens */
        background-size: 
            60px auto,   /* Car */
            70px auto,   /* Tractor */
            65px auto,   /* Pickup */
            80px auto,   /* Truck */
            50px auto;   /* Bike */
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Quick Stats */
.quick-stats {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 40px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: white;
}

.stat-item p {
    opacity: 0.9;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Full Clickable Tool Cards - FIXED */
.tool-card {
    position: relative;
    cursor: pointer;
    height: 100%;
}

/* Full card clickable link */
.tool-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
    border-radius: var(--radius);
}

.tool-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Make tool-link clickable inside card */
.tool-content a.tool-link {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    margin-top: auto;
    display: inline-flex;
    width: fit-content;
}

/* When hovering over tool-link, prevent card hover */
.tool-content a.tool-link:hover {
    z-index: 4;
}

/* Features Section */
.features {
    background: #f8fafc;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
}

/* Testimonials */
.testimonials {
    background: 
        linear-gradient(135deg, #1a1a2e 0%, #16213e 100%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    color: white;
    padding: 60px 0;
    position: relative;
}

.testimonials::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #3b82f6 25%, 
        #10b981 50%, 
        #3b82f6 75%, 
        transparent 100%);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 180px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 1.25rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.read-more:hover {
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item h3 {
        font-size: 1.75rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}

/* Add to home-styles.css */

/* Blog Home Section */
.blog-home-section {
    padding: 60px 0;
    background: white;
}

.blog-home-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-home-section .blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    height: 100%;
}

.blog-home-section .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-home-section .blog-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

.blog-home-section .blog-image {
    height: auto;
    overflow: hidden;
	padding: 5px;
}

.blog-home-section .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-home-section .blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-home-section .blog-content {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

.blog-home-section .blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.blog-home-section .blog-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--dark);
}

.blog-home-section .blog-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-home-section .read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.blog-home-section .read-more:hover {
    gap: 0.5rem;
}

/* Testimonials - 5 cards layout */
.testimonials .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .blog-home-section .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-home-section .blog-grid {
        grid-template-columns: 1fr;
    }
}