/* Apply Google Font */
body {
    font-family: 'Inter', sans-serif;
}

/* Make sure the whole page takes full height */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Reset some default styles */
body, h1, h2, p, ul {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Style the body */

/* Push footer to bottom */
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes footer to the bottom */
    min-height: 100vh; /* Ensures full page height */
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* Main content should grow and push footer down */
main, .content {
    flex: 1;
    padding-bottom: 50px; /* Adds space before the footer */
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 15px;
    background-color: #f8f8f8;
    color: #333;
    font-size: 14px;
    width: 100%;
    position: relative;
}

/* Header Styles */
header {
    background-color: #01976a;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Make h1 text thinner and add spacing */
header h1 {
    font-weight: 300; /* Makes the font thinner */
    font-size: 28px; /* Adjust size if needed */
    margin-bottom: 10px; /* Adds 10px space between h1 and nav */
}


/* Navigation Styles */
nav ul {
    list-style-type: none;
    padding: 10px 0;
    text-align: center;
    /*background: #333;*/
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease-in-out; /*Smooth transition */
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: font-size 0.5s ease, transform 0.5s ease; /* Slower effect */
}

nav ul li a:hover {
    /*color: #5a5959;*/
    font-size: 22px; /* Bigger increase */
    transform: scale(1.15); /* Slightly larger zoom effect */
}

/* Section Styling
/* Hero Section */
.hero {
    background-image: url("../images/hero.jpg"); /* Make sure the path is correct */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    min-height: 100vh; /* Ensures the hero section takes full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    position: relative;
}

.hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #f5a623;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #d48c1f;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Stack navigation links on smaller screens */
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* Adjust hero section for small screens */
    .hero {
        height: 300px;
        padding: 10px;
    }

    .hero-content {
        padding: 15px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Adjust section padding */
    section {
        padding: 30px 10px;
    }
}

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

/* Button Hover Effect */
.btn:hover {
    transform: scale(1.05); /* Slightly increase size */
    transition: all 0.3s ease-in-out;
}

/* Navigation Link Hover 
nav ul li a:hover {
    color: #f5a623;
    text-decoration: underline;
}*/

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to hero content */
.hero-content {
    animation: fadeIn 1s ease-in-out;
}


/* Products Section */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    text-align: center;
}

.product {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.product h2 {
    font-size: 20px;
    margin: 15px 0;
}

.product p {
    font-size: 16px;
    color: #666;
}

.product:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out; /* Smooth fade effect */
}

/* When modal is active, show it with a fade-in effect */
.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.4s ease-in-out; /* Smooth slide effect */
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.modal-content img {
    max-width: 100%; /* Ensures the image fits within the modal */
    height: auto; /* Maintains the aspect ratio */
    max-height: 300px; /* Prevents the image from being too tall */
    display: block;
    margin: 0 auto; /* Centers the image */
    border-radius: 10px; /* Adds smooth edges */
}

/* Contact section layout */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}

/* Google Map */
.map-container {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

/* Contact Form */
.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: bold;
    margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 96%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 15px;
}

.contact-form .btn {
    margin-top: 15px;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

.contact-form .btn:hover {
    background: #0056b3;
}

/* Company Info */
.contact-info {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info p {
    font-size: 18px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info i {
    font-size: 22px;
    color: #007bff;
}

.contact-info a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive for mobile screens */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .map-container,
    .contact-form {
        width: 100%;
        max-width: 90%;
    }
}

/* About Section Styling */
.about-section {
    max-width: 800px; /* Limit width for readability */
    margin: 50px auto; /* Center the section */
    padding: 20px;
    text-align: justify;
    line-height: 1.8; /* Improve readability */
    background-color: #fff; /* Optional: Add background color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add subtle shadow */
    border-radius: 10px; /* Optional: Rounded corners */
}

.about-section h2 {
    text-align: center; /* Center the heading */
    font-size: 28px;
    margin-bottom: 20px;
    color: #03b27d; /* Match your theme */
}

.about-section p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        padding: 15px;
        margin: 30px auto;
    }

    .about-section h2 {
        font-size: 24px;
    }

    .about-section p {
        font-size: 14px;
    }
}

/* Sustainable Forestry Section */
.sustainable-forestry {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sustainable-forestry h2 {
    color: #03b27d;
    font-size: 28px;
    margin-bottom: 15px;
}

.sustainable-forestry p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}

/* Grid layout for sustainability items */
.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sustainability-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.sustainability-item:hover {
    transform: scale(1.05);
}

.sustainability-item h3 {
    color: #03b27d;
    font-size: 20px;
    margin-bottom: 10px;
}

.sustainability-item p {
    font-size: 14px;
    color: #555;
}

/* Footer message */
.sustainability-footer {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #03b27d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sustainable-forestry {
        padding: 20px;
    }

    .sustainable-forestry h2 {
        font-size: 24px;
    }

    .sustainability-item h3 {
        font-size: 18px;
    }

    .sustainability-item p {
        font-size: 14px;
    }
}

