/* Base Styles */
:root {
    /* Color Palette */
    --primary-green: #2D680F;
    --primary-blue: #002C3F;
    --secondary-blue: #005284;
    --secondary-green: #62871C;
    --accent: #FF9F1C;
    --light-bg: #F8F9FA;
    --light-gray: #F5F5F5;
    --medium-gray: #E9ECEF;
    --dark-gray: #343A40;
    --text-color: #333;
    --white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--primary-blue);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-green);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.cta-button:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.cta-button.secondary:hover {
    background-color: rgba(45, 104, 15, 0.1);
    color: var(--primary-green);
}

/* For dark backgrounds */
.hero .cta-button,
.dark-bg .cta-button {
    background-color: white;
    color: var(--primary-green);
    border-color: white;
}

.hero .cta-button:hover,
.dark-bg .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-green);
    border-color: white;
}

.hero .cta-button.secondary,
.dark-bg .cta-button.secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.hero .cta-button.secondary:hover,
.dark-bg .cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Button container for multiple buttons */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .button-group .cta-button {
        width: 100%;
        margin: 0;
    }
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1rem 0;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
    height: 120px;
    z-index: 1001;
    padding: 1rem 0;
    box-sizing: border-box;
    transition: height 0.3s ease, padding 0.3s ease;
}

/* Logo image */
.logo {
    height: 100%;
    width: auto;
    max-height: 100px;
    object-fit: contain;
    object-position: left center;
    transition: max-height 0.3s ease;
}

header:not(.scrolled) .logo {
    max-width: 220px;
}

header.scrolled .logo {
    max-width: 180px;
    max-height: 80px;
}

/* Adjust header height when scrolled */
header.scrolled .logo-container {
    height: 80px;
    padding: 0.5rem 0;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-top: 100px;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.9;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero .btn {
    margin: 0 0.5rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.card-body {
    padding: 1.5rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-green);
}

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

.service-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin:1rem;
    padding:1rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    background: var(--light-bg);
    padding: 5rem 0;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 1rem;
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 104, 15, 0.1);
}

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

/* Footer */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 3rem 0;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.84rem;
}

/* Main content container */
main {
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Footer contact icons */
.footer-section i {
    width: 1.25rem;
    text-align: center;
    margin-right: 0.5rem;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-arrow,
.dropdown:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    color: var(--primary-green);
    background: rgba(45, 104, 15, 0.05);
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .dropdown > a::after {
        content: '+';
        margin-left: 0.5rem;
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .dropdown.active > a::after {
        content: '-';
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0 0.5rem 1.5rem;
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-blue);
        transition: var(--transition);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        padding-top: 80px;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    main {
        padding: 1.5rem 5%;
    }
    
    .footer-content {
        padding: 1.5rem 5%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.container, .features {
    width: 94%;
    max-width: 1024px;
    margin: 3% auto;
    padding: 0 1rem;
}

.container ul {
    margin-left:2rem;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
