/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
    line-height: 1.6;
}

:root {
    --primary-color: #28a745; /* Green for eco-friendly theme */
    --secondary-color: #007bff; /* Blue for modern accents */
    --background-color: #f8f9fa; /* Light background */
    --text-color: #333; /* Dark text */
}

/* Navigation Bar */
.navbar.shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('./Images/Boar_guard_in_action.png') no-repeat center center;
    background-size: cover;
    background-position: center 30%;
    height: 100vh;
    color: white;
    position: relative;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #218838; /* Darker green */
    border-color: #218838;
}

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

/* Section Styles */
.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.bg-light {
    background-color: var(--background-color) !important;
}

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Threat Section */
.threat-img {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin: 0 auto;
    display: block;
}

.threat-img:hover {
    transform: scale(1.02);
    filter: brightness(90%);
}

/* Introduction Section */
.introduction-container .image-container {
    text-align: center;
    padding: 1rem;
}

.introduction-container .image-container img {
    height: 300px;
    object-fit: cover;
    margin: 0 auto;
}

/* Benefits Section */
#benefits img {
    height: 300px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    padding: 0.5rem;
}

#benefits .col-md-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#benefits ul {
    margin-bottom: 1.5rem;
}

#benefits li {
    margin-bottom: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .threat-img, 
    .introduction-container .image-container img,
    #benefits img {
        height: 220px;
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    #benefits .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* How It Works Section */
#how-it-works {
    background: url('./Images/Device.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

#how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

#how-it-works .container {
    position: relative;
    z-index: 1;
}

/* Card Hover Effects */
.card {
    border: none;
    background-color: #fff;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1rem;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 1.5rem;
}

/* Scroll to Top Button */
#scrollTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
}

/* Footer */
footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}