/* === GENERAL STYLES === */
:root {
    --primary-color: #0d6a25;
    --secondary-color: #ffcc00;
    --dark-color: #013220;
    --light-color: #f9f9f9;
    --text-color: #333;
    --hover-color: #0a4b1a;
    --border-radius: 6px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Disable animations on mobile for better performance */
@media (max-width: 767px) {
    .animate-on-scroll {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Simplify box-shadows on mobile */
    .service-card,
    .product-card,
    .news-card,
    .testimonial-card,
    .contact-form,
    .gallery-item,
    .map-container {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

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

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-heading {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 2.2rem;
    position: relative;
}

.heading-underline {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin-bottom: 25px;
    border-radius: 2px;
}

.heading-underline.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* === NAVIGATION === */
.navbar {
    background-color: transparent;
    transition: background-color 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background-color: var(--dark-color);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .company-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--secondary-color);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: 0.3s;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 70%;
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/440731/pexels-photo-440731.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 106, 37, 0.8) 0%, rgba(1, 50, 32, 0.8) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p.lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* === ABOUT SECTION === */
.about-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.about-img-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    z-index: -1;
}

.about-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.company-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.value-item {
    flex: 0 0 31%;
    text-align: center;
    margin-bottom: 25px;
    padding: 20px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: #f9f9f9;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* === SERVICES SECTION === */
.service-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    transition: var(--transition);
    transform: translateY(100%);
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover h4,
.service-card:hover p {
    color: white;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--secondary-color);
    transition: var(--transition);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
    display: inline-block;
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    background-color: rgba(13, 106, 37, 0.1);
    text-align: center;
}

.service-card h4 {
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    margin-bottom: 0;
    transition: var(--transition);
}

/* === PRODUCTS SECTION === */
.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    position: relative;
}

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

.product-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    transform-origin: center;
}

.product-card:hover .product-img-container img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

/* === NEWS SECTION === */
.news-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    text-align: center;
    line-height: 1;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.news-date .month,
.news-date .year {
    display: block;
    font-size: 0.875rem;
}

.news-content {
    padding: 20px;
}

.news-content h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.news-text {
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--hover-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* === GALLERY SECTION === */
.gallery-section {
    position: relative;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    margin: 0 5px 10px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.gallery-container {
    position: relative;
}

.gallery-item-wrapper {
    transition: all 0.5s ease;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 106, 37, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

.gallery-info h5 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.gallery-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.gallery-popup {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.gallery-popup:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: scale(1.1);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    margin: 20px;
    animation: fadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    border: 5px solid white;
    border-radius: 3px;
}

.lightbox-caption {
    background: white;
    padding: 15px;
    border-radius: 0 0 3px 3px;
}

.lightbox-caption h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.lightbox-caption p {
    margin: 0;
    color: var(--text-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--hover-color);
    transform: translateY(-5px);
}

/* === COUNTER SECTION === */
.counter-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.pexels.com/photos/265216/pexels-photo-265216.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.counter-item {
    text-align: center;
    padding: 20px;
}

.counter-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.counter-item p {
    font-size: 1.2rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* === TESTIMONIAL SECTION === */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-rating {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    position: relative;
    padding-left: 25px;
}

.testimonial-text::before {
    content: '\201C';
    font-family: Arial, sans-serif;
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: rgba(13, 106, 37, 0.1);
}

.testimonial-author h5 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.testimonial-author p {
    color: #777;
    margin: 0;
}

/* === CONTACT SECTION === */
.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h5 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 10px;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control {
    border: 1px solid #e1e1e1;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 106, 37, 0.25);
}

/* === FOOTER === */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-heading {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.newsletter-form .form-control {
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    height: 45px;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    height: 45px;
    padding-top: 0;
    padding-bottom: 0;
}

hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p.lead {
        font-size: 1.2rem;
    }
    
    .value-item {
        flex: 0 0 48%;
    }
    
    .map-container {
        height: 400px;
    }
    
    .navbar.scrolled {
        padding: 5px 0;
    }
    
    .navbar-brand .company-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .section-heading {
        font-size: 1.8rem;
    }
    
    .about-img-container {
        margin-bottom: 30px;
    }
    
    .value-item {
        flex: 0 0 100%;
    }
    
    .contact-form {
        margin-top: 30px;
    }
    
    .filter-btn {
        margin-bottom: 10px;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .map-container {
        height: 350px;
    }
    
    .navbar-collapse {
        background-color: rgba(1, 50, 32, 0.95);
        padding: 15px;
        border-radius: var(--border-radius);
        margin-top: 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p.lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p.lead {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .loader {
        padding: 25px;
        width: 85%;
    }
    
    .loader h2 {
        font-size: 1.4rem;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.float-animation {
    animation: float 2s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 1.5s ease-in-out infinite;
}

/* === PRELOADER === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.loader {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    width: 85%;
}

.loader-inner {
    margin-bottom: 15px;
}

.circle {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(13, 106, 37, 0.1);
    border-top: 6px solid var(--primary-color);
    border-right: 6px solid var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
    will-change: transform;
}

.loader h2 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loader p {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.loader p::after {
    content: '...';
    position: absolute;
    animation: ellipsis 1.2s infinite;
    width: 20px;
    text-align: left;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ellipsis {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* Map container styling */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
} 