/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.8;
}

h1, h2, h3 {
    font-family: 'Arial Black', sans-serif;
    color: #3a7f5a;
}

h4 {
    font-size: 20px;
    margin-top: 22px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Navigation Styles */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #3a7f5a;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #eaf9ef;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3a7f5a;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #2a6044;
}

/* Landing Section */
.landing {
    background-color: #eaf9ef;
    padding: 7rem 2rem 5rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.landing h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.landing p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.landing button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    color: #fff;
    background-color: #3a7f5a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.landing button:hover {
    background-color: #2a6044;
    transform: translateY(-2px);
}

/* Info Sections */
.info-section {
    padding: 5rem 2rem;
    background-color: #fff;
}

.info-section:nth-child(even) {
    background-color: #f8f9fa;
}

.info-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Company Profile */
.content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
}

.company-image {
    max-width: 45%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.content p {
    flex: 1;
}

/* Product Detail Page Styles */
.product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.product-image img {
    width: 300px;
    height: 300px;
}

.product-item {
    margin-bottom: 30px;
}

.product-box {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.product-contact {
    margin-top: 20px;
}

.product-contact a {
    color: #007BFF;
    text-decoration: none;
    padding: 0.5rem 2rem;  /* Increased padding */
    font-size: 1.1rem;    /* Increased font size */
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.product-contact a:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    text-decoration: none;  /* Removed underline on hover */
}

.product-image {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}
}

.relay-image {
    text-align: center;
}

.relay-image img {
    max-width: 200px;
    height: auto;
}

.relay-image p {
    text-align: center;
    margin-top: 10px;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.enquiry-btn {
    background-color: #007bff;
    color: white;
    padding: 0.15rem 1.1rem;       /* Reduced padding by ~40% */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    min-width: 66px;               /* Reduced min-width by ~40% from 110px */
    font-size: 1.05rem;            /* Kept font size */
    text-align: center;
    width: auto;                   /* Added to ensure button shrinks with content */
    height: auto;                  /* Added to ensure button height adjusts properly */
}

.enquiry-btn:hover {
    background-color: #0056b3;
}

button.enquiry-btn {
    background-color: #007bff;
    color: white;
    padding: 0.15rem 1.1rem;       /* Reduced padding by ~40% */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    min-width: 66px;               /* Reduced min-width by ~40% from 110px */
    font-size: 1.05rem;            /* Kept font size */
    text-align: center;
    width: auto;                   /* Added to ensure button shrinks with content */
    height: auto;                  /* Added to ensure button height adjusts properly */
}

button.enquiry-btn:hover {
    background-color: #0056b3;
}

.product-contact a {
    color: #007BFF;
    text-decoration: none;
    padding: 0.15rem 1.1rem;       /* Reduced padding by ~40% */
    font-size: 1.05rem;            /* Kept font size */
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 66px;               /* Reduced min-width by ~40% from 110px */
    width: auto;                   /* Added to ensure button shrinks with content */
    height: auto;                  /* Added to ensure button height adjusts properly */
}

.product-contact a:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Services and Careers */
.career-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.career-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.career-item h3 {
    margin-bottom: 1rem;
    color: #3a7f5a;
}

.career-item p {
    color: #666;
    line-height: 1.6;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: serviceCardAnimation 0.6s ease-out;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #3a7f5a;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-item:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    color: #2a6044;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #3a7f5a;
    transition: color 0.3s ease;
}

.service-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.service-item:hover .service-title {
    color: #2a6044;
}

/* Contact Section */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: #333;
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    background-color: white;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* Updated Button Styles with Smaller Size */
button {
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
    min-width: 120px;
    display: block;
    margin: 0 auto;
}

button:hover {
    background-color: #0056b3;
}

input:invalid, textarea:invalid {
    border-color: #dc3545;
}

input:invalid + .error, textarea:invalid + .error {
    display: block;
}

.contact-info p {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact-info p:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-info i {
    color: #3a7f5a;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-info p:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #2a6044;
}

.contact-items {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Let's Work Together Section */
#lets-work-together {
    background-color: #eaf9ef;
    padding: 5rem 2rem;
    text-align: center;
}

#lets-work-together p {
    max-width: 800px;
    margin: 2rem auto;
    font-size: 1.2rem;
    color: #666;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes serviceCardAnimation {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background-color: #2a6044;
        min-width: 100%;
        box-shadow: none;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
    }
    
    .product-detail-page {
        padding: 5rem 1rem 3rem;
    }
    
    .product-content h1 {
        font-size: 2rem;
    }
    
    .product-section h2 {
        font-size: 1.5rem;
    }
    
    .product-section {
        padding: 1.5rem;
    }
}
