/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Bootstrap-like grid system */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Responsive columns */
@media (min-width: 576px) {
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

[class*="col-"] {
    padding: 0 15px;
}

/* Utility classes */
.d-flex { display: flex; }
.d-block { display: block; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.text-center { text-align: center; }
.text-light { color: #f8f9fa !important; }
.text-white { color: white !important; }
.text-dark { color: #ffffff !important; }
.font-weight-light { font-weight: 300; }
.font-weight-bold { font-weight: 700; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.pl-3 { padding-left: 1rem; }
.pr-0 { padding-right: 0; }
.pr-3 { padding-right: 1rem; }
.pt-3 { padding-top: 1rem; }
.border-0 { border: 0; }
.rounded-5 { border-radius: 1rem; }

/* Typography */
.h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.h3 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.h4 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.h5 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }

/* Green theme colors */
.green-title {
    color: #208c3b;
}

.gray {
    color: #6c757d;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.logo-img {
    height: 60px;
    width: auto;
}

/* Navigation */
.navbar {
    background-color: #208c3b !important;
    padding: 1rem 0;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: white !important;
    font-weight: 700;
    padding: 0.5rem 1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f8f9fa !important;
    opacity: 0.8;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.8em;
    margin-left: 0.3em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 180px;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: #212529;
    text-decoration: none;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #208c3b;
}

/* Mobile menu toggle */
.navbar-toggler {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.navbar-collapse {
    display: flex;
}

@media (max-width: 991px) {
    .navbar-collapse {
        display: none;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .dropdown-item {
        color: white;
        padding-left: 2rem;
    }
}

/* Hero Carousel */
.carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
}

.slider-content .h5 {
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.slider-content .h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 800;
}

/* Product Cards */
.home_cards .card {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home_cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.home_cards .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    z-index: 1;
}

.home_cards .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.home_cards .card-title {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(240, 218, 218, 0.7);
}

/* Info Section */
.home_info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.home_info .card {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    max-width: 900px;
}

/* Certifications */
.home_certificates {
    background: #f8f9fa;
    padding-bottom: 4rem;
}

.circle_certificate {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle_certificate img {
    border-radius: 50%;
    padding: 1rem;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.circle_certificate img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #208c3b;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li:first-child {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: none;
    color: white;
}

footer .bi {
    margin-right: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

footer .bi:hover {
    color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-content {
        padding: 1rem;
    }

    .slider-content .h1 {
        font-size: 2rem;
    }

    .h1 {
        font-size: 2rem;
    }

    .home_cards .card {
        height: 150px;
    }

    .home_info .card {
        margin: 1rem;
    }
}

@media (max-width: 576px) {
    .slider-content .h1 {
        font-size: 1.5rem;
    }

    .slider-content .h5 {
        font-size: 1rem;
    }

    .home_cards .card {
        height: 120px;
    }

    .home_cards .card-title {
        font-size: 1.2rem;
    }
}

/* Animation classes */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}
