/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #4CAF50;
    color: #fff;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 50px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

ul {
    list-style: none;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

ul li {
    margin-left: 20px;
}

ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s;
}

ul li a:hover {
    background-color: #388E3C;
    border-radius: 5px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#hero {
    text-align: center;
    padding: 50px 0;
    background-color: #fff;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #4CAF50;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    background-color: #228b22;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #388E3C;
}

#overview, #about, #products, #contact {
    margin-bottom: 40px;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(34,139,34,0.08);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition:
        box-shadow 0.3s cubic-bezier(.4,2,.6,1),
        transform 0.3s cubic-bezier(.4,2,.6,1);
    cursor: pointer;
    min-height: 180px;
}

.service-card:hover,
.service-card:focus-within {
    box-shadow: 0 8px 24px rgba(34,139,34,0.18), 0 1.5px 8px rgba(34,139,34,0.08);
    transform: translateY(-8px) scale(1.03);
    z-index: 2;
}

.service-summary {
    color: #228b22;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.service-details {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
    transition: opacity 0.3s, max-height 0.3s;
    color: #333;
    font-size: 0.97rem;
    margin-top: 0.5rem;
}

.service-card:hover .service-details,
.service-card:focus-within .service-details {
    opacity: 1;
    max-height: 200px;
    pointer-events: auto;
    transition: opacity 0.3s, max-height 0.3s;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(34,139,34,0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: 
    box-shadow 0.3s cubic-bezier(.4,2,.6,1),
    transform 0.3s cubic-bezier(.4,2,.6,1);
  cursor: pointer;
  min-height: 180px;
}

.product-card:hover,
.product-card:focus-within {
  box-shadow: 0 8px 24px rgba(34,139,34,0.18), 0 1.5px 8px rgba(34,139,34,0.08);
  transform: translateY(-8px) scale(1.03);
  z-index: 2;
}

.product-summary {
  color: #228b22;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-details {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
  transition: opacity 0.3s, max-height 0.3s;
  color: #333;
  font-size: 0.97rem;
  margin-top: 0.5rem;
}

.product-card:hover .product-details,
.product-card:focus-within .product-details {
  opacity: 1;
  max-height: 200px;
  pointer-events: auto;
  transition: opacity 0.3s, max-height 0.3s;
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 1.2rem 1rem;
  }
}

.service, .product {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.service h3, .product h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.contact-info {
    margin-bottom: 30px;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    height: 150px;
}

button[type="submit"] {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background-color: #228b22;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #388E3C;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #4CAF50;
    color: #fff;
}

/* 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.5);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-in-out;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        position: relative;
    }
    
    .hamburger {
        display: flex;
    }
    
    ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #4CAF50;
        flex-direction: column;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        padding: 0;
        margin: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
    }
    
    ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    ul li {
        margin-left: 0;
        text-align: center;
    }
    
    ul li a {
        display: block;
        padding: 15px;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
}