/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Navigation - Transparent with Blur */
.navbar {
    background: rgba(1, 105, 24, 0.15); /* #016918 with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(1, 105, 24, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #016918;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo img {
    display: block;
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e2f;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:not(.btn):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #016918;
    transition: width 0.3s ease;
}

.nav-menu a:not(.btn):hover:after {
    width: 100%;
}

.nav-menu a:hover {
    color: #016918;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(1, 105, 24, 0.2);
}

/* Navbar button specific styling */
.nav-menu .btn {
    padding: 0.5rem 1.5rem;
    margin: 0;
    font-size: 1rem;
    color: white;
}

.btn-primary {
    background: #016918;
    color: white;
}

.btn-primary:hover {
    background: #014d12;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(1, 105, 24, 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e2f;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 47, 0.6), rgba(1, 105, 24, 0.5)), url('../images/heroSectionImage.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 10rem 5%;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid Section */
.grid-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e2f;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.grid-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #016918;
    border-radius: 3px;
}

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

.grid-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(1, 105, 24, 0.2);
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(1, 105, 24, 0.2);
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.grid-item-content {
    padding: 1.5rem;
}

.grid-item-content h3 {
    color: #2c3e2f;
    margin-bottom: 0.5rem;
}

/* Content Section */
.content-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f3ee 100%);
    position: relative;
}

.content-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #016918, #014d12, #016918);
}

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

.content-wrapper h2 {
    color: #2c3e2f;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Form Styles */
.form-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(1, 105, 24, 0.15);
    border: 1px solid rgba(1, 105, 24, 0.3);
    position: relative;
    overflow: hidden;
}

.form-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #016918, #4caf50, #016918);
}

.form-container h1.page-title {
    color: #2c3e2f;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed rgba(1, 105, 24, 0.3);
    position: relative;
}

.form-container h1.page-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: #016918;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 0.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Label Styling */
label {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #2c3e2f;
    font-size: 0.95rem;
    width: 100%;
    letter-spacing: 0.3px;
}

.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
    display: inline;
    margin-left: 2px;
    font-size: 1.1rem;
}

.optional {
    color: #016918;
    font-weight: normal;
    font-size: 0.85rem;
    margin-left: 5px;
    display: inline;
    font-style: italic;
    background: rgba(1, 105, 24, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

/* Input Fields */
input, select, textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e7dd;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fafafa;
}

input:hover, select:hover, textarea:hover {
    border-color: #4caf50;
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #016918;
    box-shadow: 0 0 0 4px rgba(1, 105, 24, 0.15);
    background: white;
}

/* Radio button styling */
input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #016918;
    transform: scale(1.1);
}

.form-group > div[style*="flex"] {
    background: #f8faf7;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(1, 105, 24, 0.2);
}

.form-group > div[style*="flex"] label {
    margin-bottom: 0;
    font-weight: 500;
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(1, 105, 24, 0.3);
}

/* File input styling */
input[type="file"] {
    padding: 0.7rem;
    border: 2px dashed #016918;
    background: rgba(1, 105, 24, 0.05);
    cursor: pointer;
    border-radius: 12px;
}

input[type="file"]:hover {
    background: rgba(1, 105, 24, 0.1);
    border-color: #014d12;
}

/* Select dropdown styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23016918' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

select option:disabled {
    color: #999;
    background-color: #f5f5f5;
    font-style: italic;
}

/* Textarea */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* Image Preview */
.image-preview {
    margin-top: 1rem;
    max-width: 200px;
    display: none;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #016918;
    padding: 5px;
    background: white;
    box-shadow: 0 5px 15px rgba(1, 105, 24, 0.2);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Help text */
.help-text {
    display: block;
    color: #014d12;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.4;
    padding-left: 0.5rem;
    border-left: 3px solid #016918;
}

/* Alerts */
.alert {
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    border-left: 5px solid;
    animation: slideIn 0.3s ease;
}

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

.alert-success {
    background: rgba(1, 105, 24, 0.1);
    color: #2c3e2f;
    border-left-color: #016918;
    border: 1px solid rgba(1, 105, 24, 0.3);
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border-left-color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Page Content */
.page-content {
    padding: 4rem 5%;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 3rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(1, 105, 24, 0.2);
}

.page-title {
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e2f;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #016918;
    border-radius: 3px;
}

/* Contact Form */
.contact-form {
    background: #f8faf7;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(1, 105, 24, 0.2);
}

.contact-form label {
    color: #2c3e2f;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e2f 0%, #1e2b20 100%);
    color: white;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #016918, #4caf50, #016918);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-content h3 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #016918;
}

.footer-content p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    padding-left: 0;
}

.footer-links a:hover {
    color: #016918;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(1, 105, 24, 0.3);
    border-radius: 50px;
    transition: all 0.3s;
    background: rgba(1, 105, 24, 0.1);
}

.social-links a:hover {
    color: white;
    border-color: #016918;
    background: #016918;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 992px) {
    .form-container {
        max-width: 95%;
        margin: 2rem auto;
        padding: 2rem;
    }
    
    .form-row {
        gap: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 1.5rem;
        border-bottom: 1px solid rgba(1, 105, 24, 0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a:after {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero {
        padding: 6rem 5%;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .form-group > div[style*="flex"] {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .form-group > div[style*="flex"] label {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .form-row {
        gap: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    label {
        font-size: 0.9rem;
    }
    
    input, select, textarea {
        padding: 0.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 2rem 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar, footer, .btn {
        display: none;
    }
    
    .form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}