/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 70px;
}

/* Button Styles */
.btn-primary {
    background: #2E7D32;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, #2e7530 0%, #1b5e20 100%);
    color: white;
    margin-top: -90px;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero h2 span {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 1rem;
}

.hero-animated-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.hero-animated-circle:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 250px;
    height: 250px;
    animation-delay: 0s;
    animation-duration: 8s;
    opacity: 0.8;
}

.hero-animated-circle:nth-child(2) {
    bottom: 20%;
    right: 15%;
    width: 200px;
    height: 200px;
    animation-delay: 2s;
    animation-duration: 6s;
    opacity: 0.6;
}

.hero-animated-circle:nth-child(3) {
    bottom: 30%;
    left: 40%;
    width: 150px;
    height: 150px;
    animation-delay: 4s;
    animation-duration: 7s;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(46, 117, 48, 0.9);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav li {
    list-style: none;
    margin: 0 1rem;
}

.nav li:last-child {
    margin-right: 0;
}

.nav a:hover {
    opacity: 0.8;
}

.nav a.active {
    position: relative;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffeb3b;
    animation: underline 0.3s ease-in-out;
}

@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

/* Responsive Navigation */
@media (min-width: 768px) {
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-brand {
        flex: 1;
        text-align: center;
    }
    
    .nav ul {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        background: none;
    }
    
    .nav li {
        display: inline-block;
        margin: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-brand {
        font-size: 1.8rem;
    }
    
    .nav li {
        margin: 0 2rem;
    }
}

/* Enhanced Centering for Large Screens */
@media (min-width: 1200px) {
    .nav {
        justify-content: space-between;
        padding: 1rem 4rem;
        flex-wrap: wrap;
    }
    
    .nav-brand-container {
        flex: 1 0 100%;
        text-align: left;
        margin-left: 2rem;
    }
    
    .nav-menu {
        flex: 1 0 100%;
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
        background: none;
        margin-top: 0.5rem;
    }
    
    .nav li {
        margin: 0 1.5rem;
    }
    
    .nav-brand {
        font-size: 2rem;
        letter-spacing: 1px;
    }
}

/* Add subtle animation for brand text */
.nav-brand {
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-in-out;
}

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

/* Section Common Styles */
section {
    padding: 4rem 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2E7D32;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #4ADE80;
}

/* Why Choose Us Section */
.why-us-section {
    background: #F5F5F5;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.why-us-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.why-us-icon {
    color: #2E7D32;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.why-us-item:hover .why-us-icon {
    transform: scale(1.1);
    color: #4ADE80;
}

.why-us-title {
    color: #2E7D32;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.why-us-description {
    color: #555;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.service-icon {
    width: 48px;
    height: 48px;
    color: #2E7D32;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
    color: #4ADE80;
}

/* Small Business Section */
.small-business-section {
    background: #F5F5F5;
    position: relative;
}

.small-business-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #2E7D32, #4ADE80);
}

.small-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.small-business-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.small-business-icon {
    color: #2E7D32;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.small-business-card:hover .small-business-icon {
    transform: scale(1.1);
    color: #4ADE80;
}

/* Testimonials Section */
.testimonials-section {
    background: #F1F8E9;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

blockquote {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    font-style: italic;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #2E7D32;
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 1rem;
    line-height: 1;
}

cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: #2E7D32;
    text-align: right;
}

/* Contact Section */
.contact-section {
    background: #F1F8E9;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: #2E7D32;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.form-submit:hover {
    background: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #1B5E20;
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.footer a {
    color: #A7FFEB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #E0F2F1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 4rem;
        margin-top: 60px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero h2 span {
        font-size: 1.2rem;
    }
    
    .hero-animated-circle {
        display: none;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero h2 {
        font-size: 3rem;
    }
    
    .hero-animated-circle:nth-child(1),
    .hero-animated-circle:nth-child(2) {
        width: 200px;
        height: 200px;
    }
}