/* NEW ERA SOFTWARES - Simplified Green Theme Website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0f7f0, #e8f5e9);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

header:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

header:hover:after {
    left: 100%;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 5px;
}

/* Navigation Styles */
nav {
    background: linear-gradient(to bottom, #4caf50, #2e7d32);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 10px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav a:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

nav a:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

/* Section Styles */
.section {
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-child(even) {
    background-color: rgba(245, 245, 245, 0.8);
}

.section h2 {
    color: #2e7d32;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, #4caf50, #81c784);
    border-radius: 2px;
}

/* Home Section */
.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    color: #1b5e20;
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to right, #e8f5e9, #c8e6c9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: #1b5e20;
    margin-bottom: 1rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

.product-card h3 {
    color: #2e7d32;
    padding: 1rem;
    margin: 0;
    font-size: 1.3rem;
}

.product-card p {
    padding: 0 1rem 1rem;
    color: #555;
}

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

.service-card {
    background: linear-gradient(to right, #f1f8e9, #e8f5e9);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #81c784;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: #1b5e20;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.contact-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1b5e20;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Button Styles */
.btn {
    display: inline-block;
    background: linear-gradient(to bottom, #4caf50, #2e7d32);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 30px;
    margin: 10px 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: linear-gradient(to bottom, #66bb6a, #388e3c);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn.secondary {
    background: linear-gradient(to bottom, #81c784, #4caf50);
}

.btn.secondary:hover {
    background: linear-gradient(to bottom, #a5d6a7, #66bb6a);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .features {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.4rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional styling for lists */
ul {
    padding-left: 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 15px;
}

ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Company name styling */
.company-name {
    color: #1b5e20; /* Deep green */
    font-weight: bold;
    font-size: 1.2em;
}

/* Basis section styling */
.basis-section {
    text-align: center;
    margin: 20px 0;
}

.proud-member {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.basis-logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.basis-logo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* IoT Solutions box styling */
.iot-solutions {
    background: linear-gradient(to right, #4caf50, #2e7d32);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.iot-solutions p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Active navigation link */
nav a.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
}