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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background: #1a1a1a !important;
    backdrop-filter: blur(10px);
    color: white;
    z-index: 1000;
    box-sizing: border-box;
}

/* Force header to stay dark gray on scroll */
.header[style] {
    background: #1a1a1a !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    background: transparent;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-phone i {
    color: #2e8b57;
    font-size: 1rem;
}

.nav-phone span {
    color: white;
}

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

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2e8b57;
}

.nav-link.active {
    color: #2e8b57;
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2e8b57;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-button {
    background: #2e8b57 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
}

.nav-button:hover {
    background: #1a5e3a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.4) !important;
}

.nav-button::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('header-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-logo {
    max-width: 450px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #2e8b57;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #2e8b57;
    color: white;
    border: 2px solid #2e8b57;
}

.btn-primary:hover {
    background: #1a5e3a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.4);
}

.btn-secondary {
    background: #2e8b57;
    color: white;
    border: 2px solid #2e8b57;
}

.btn-secondary:hover {
    background: #1a5e3a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.4);
}

.btn-white {
    background: #2a2a2a;
    color: #2e8b57;
    border: 2px solid white;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1a5e3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Styles */
section {
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 120px 0 100px 0;
    background: #1a1a1a;
    position: relative;
}

#nos-services-target {
    position: absolute;
    top: -20px;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

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

.service-card {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: #2e8b57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #1a5e3a;
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.service-card p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* Service Areas Section */
.service-areas {
    padding: 80px 0 60px 0;
    background: #2a2a2a;
}

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

.area-column {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.area-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.area-column h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2e8b57;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2e8b57;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.area-column h3 i {
    font-size: 1rem;
    color: #2e8b57;
}

.area-column ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

.area-column li {
    padding: 0.4rem 0.8rem;
    color: #e0e0e0;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #2a2a2a;
    border-left: 3px solid transparent;
}

.area-column li:hover {
    color: #2e8b57;
    background: #1a1a1a;
    border-left-color: #2e8b57;
    transform: translateX(5px);
}

/* About Section */
.about {
    padding: 80px 0 60px 0;
    background: #1a1a1a;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.about-text strong {
    color: #2e8b57;
    font-weight: 600;
}

.about-image {
    position: relative;
    margin-top: 2rem;
}

.about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

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

.highlight-item {
    background: linear-gradient(135deg, #2e8b57 0%, #1a5e3a 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.highlight-item i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.highlight-item span {
    font-size: 0.9rem;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
}

.highlight-item:hover::before {
    left: 100%;
}

/* Contact Section */
.contact {
    padding: 120px 0 100px 0;
    background: #1a1a1a;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #2e8b57;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #b0b0b0;
    margin: 0;
}

.contact-form {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #555;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    background: #1a1a1a;
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e8b57;
}

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

.contact-form .btn {
    width: 100%;
}

/* Réalisations Section */
.realisations {
    background: #1a1a1a;
    padding: 4rem 0;
}

/* Réalisations Page Styles */
.realisations-hero {
    background: linear-gradient(135deg, #2e8b57 0%, #1a5e3a 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.realisations-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.realisations-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.realisations-gallery {
    padding: 4rem 0;
    background: #2a2a2a;
}

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

.realisation-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.realisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.3);
}

.realisation-image {
    height: 200px;
    overflow: hidden;
}

.realisation-image svg,
.realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.realisation-content {
    padding: 1.5rem;
}

.realisation-content h3 {
    color: white !important;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.realisation-content p {
    color: white !important;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.realisation-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.realisation-location,
.realisation-category {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #2e8b57;
    background: rgba(46, 139, 87, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.realisation-location i,
.realisation-category i {
    font-size: 0.7rem;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    text-align: center;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pagination-btn {
    background: #2e8b57;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #1a5e3a;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    background: #2a2a2a;
    color: #333;
    border: 2px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 40px;
}

.pagination-number:hover {
    border-color: #2e8b57;
    color: #2e8b57;
}

.pagination-number.active {
    background: #2e8b57;
    color: white;
    border-color: #2e8b57;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

/* Hide page 2 items by default */
.realisation-card[data-page="2"] {
    display: none;
}

/* Recent Projects Section */
.recent-projects {
    padding: 80px 0;
    background: #1a1a1a;
}

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

.project-card {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.3);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    height: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: white !important;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.project-content p {
    color: white !important;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.project-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
}

.project-location,
.project-category {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #2e8b57;
    background: rgba(46, 139, 87, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-location:hover,
.project-category:hover {
    background: rgba(46, 139, 87, 0.4);
    transform: translateY(-1px);
    color: #2e8b57;
}

.project-location:hover,
.project-category:hover {
    background: rgba(46, 139, 87, 0.4);
    transform: translateY(-1px);
    color: #2e8b57;
}

.project-location i,
.project-category i {
    font-size: 0.7rem;
}

.projects-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2e8b57;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section i {
    color: #2e8b57;
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Page Hero Styles */
.page-hero {
    min-height: 50vh;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(46, 139, 87, 0.3)), url('header-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Services Detail Styles */
.services-detail {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-detail-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
}

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

.service-detail-card .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2e8b57, #1a5e3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.service-detail-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.service-detail-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-detail-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-detail-card ul li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.service-detail-card ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2e8b57;
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #ccc;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Portfolio Gallery Styles */
.portfolio-gallery {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.filter-group label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.filter-select {
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: white;
    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='currentColor' 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 12px center;
    background-size: 18px;
    text-align: center;
    text-align-last: center;
    transition: border-color 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-select:focus {
    outline: none;
    border-color: #2e8b57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.filter-select:hover {
    border-color: #2e8b57;
}

.filter-select option {
    text-align: left;
    padding: 8px 15px;
}

#searchButton,
#clearFilters {
    padding: 12px 20px;
    white-space: nowrap;
    align-self: end;
}

#searchButton {
    background: #2e8b57;
    color: white;
    border: 2px solid #2e8b57;
}

#searchButton:hover {
    background: #25754a;
    border-color: #25754a;
}

.filter-results {
    margin-bottom: 20px;
    text-align: center;
}

.filter-results span {
    background: #2e8b57;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    position: relative;
}

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

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(46, 139, 87, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-info {
    text-align: center;
    color: white;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.portfolio-category {
    background: #2e8b57;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.portfolio-content {
    padding: 20px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: calc(100% - 80px);
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.portfolio-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.portfolio-details {
    display: flex !important;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    visibility: visible !important;
    background: white;
    height: 60px;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 15px 15px;
}

.detail-item {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
    visibility: visible !important;
}

.detail-item i {
    color: #2e8b57;
    font-size: 0.9rem;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
}

.modal-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #2e8b57;
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 80%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalZoomOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

.image-modal.closing {
    animation: fadeOut 0.3s ease forwards;
}

.image-modal.closing .modal-image {
    animation: modalZoomOut 0.3s ease forwards;
}

.portfolio-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-image:hover img {
    transform: scale(1.05);
}

/* Prevent hover effects when modal is active */
body.modal-active .portfolio-image:hover img {
    transform: none;
}

/* Pagination Styles - Applied to all screen sizes */
.pagination-container {
    margin-top: 50px;
    text-align: center;
}

.pagination-info {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.pagination-btn {
    background: transparent;
    border: 2px solid #2e8b57;
    color: #2e8b57;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
    background: #2e8b57;
    color: white;
    border-color: #2e8b57;
}

.pagination-btn:disabled {
    display: none;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.page-number {
    background: transparent;
    border: none;
    color: #000000;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
    min-width: 36px;
    text-align: center;
    text-decoration: none;
}

.page-number:hover:not(.active) {
    background: transparent;
    color: #000000;
}

.page-number.active {
    background: transparent;
    color: #2e8b57;
    font-weight: 600;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .nav-logo {
        gap: 1rem;
    }
    
    .nav-phone {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background-color: #000000;
        width: 100vw;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        padding: 6rem 2rem 2rem;
        box-sizing: border-box;
        z-index: 9999;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 2rem 0;
    }
    
    .nav-menu a {
        color: white !important;
        font-size: 1.2rem;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .nav-menu a:hover {
        color: #2e8b57 !important;
    }
    
    .nav-button {
        margin: 2rem 0 !important;
        padding: 15px 30px !important;
        border-radius: 30px !important;
        font-size: 1.1rem !important;
        background: #2e8b57 !important;
        color: white !important;
        border: 2px solid #2e8b57 !important;
    }
    
    .nav-button:hover {
        background: transparent !important;
        color: #2e8b57 !important;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        max-width: 280px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 250px;
        max-width: 90%;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        display: none;
    }

    .realisations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 20px;
    }

    .portfolio-details {
        display: flex !important;
        gap: 10px;
        flex-wrap: wrap;
        padding-top: 15px;
        border-top: 1px solid #eee;
        visibility: visible !important;
    }

    .detail-item {
        display: flex !important;
        align-items: center;
        gap: 5px;
        font-size: 0.8rem;
        color: #888;
        visibility: visible !important;
    }

    .detail-item i {
        color: #2e8b57;
        font-size: 0.8rem;
    }

    .filter-controls {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        align-items: center;
    }

    .filter-group {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .filter-select {
        width: 100%;
    }

    #searchButton,
    #clearFilters {
        width: 100%;
        max-width: 400px;
        margin-top: 10px;
    }

    .pagination-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .realisations-hero h1 {
        font-size: 2.5rem;
    }
    
    .realisations-hero p {
        font-size: 1rem;
    }

    .realisation-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-text h2 {
        font-size: 2rem;
        text-align: center;
    }

    .about-text p {
        text-align: left;
        font-size: 0.95rem;
    }

    .about-highlights {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .highlight-item {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .area-column {
        padding: 1.2rem;
    }

    .area-column h3 {
        font-size: 1.1rem;
    }

    .area-column li {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .hero {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        background-attachment: scroll;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-logo {
        max-width: 250px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Portfolio cards - mobile specific height increase */
    .portfolio-item {
        min-height: 550px;
        display: flex;
        flex-direction: column;
    }
    
    /* Ensure portfolio details stay at bottom */
    .portfolio-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .portfolio-details {
        margin-top: auto;
    }
    
    /* Home page project cards - mobile specific height increase */
    .project-card {
        min-height: 480px;
        display: flex;
        flex-direction: column;
    }
    
    /* Ensure project details stay at bottom */
    .project-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .project-details {
        margin-top: auto;
        position: static;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Services Footer */
.services-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #dee2e6;
}

.services-more {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-style: italic;
}

/* Services Page Styles */
.services-hero {
    background: linear-gradient(135deg, #2e8b57 0%, #1a5e3a 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.services-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.services-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.services-content {
    padding: 4rem 0;
    background: #1a1a1a;
}

.services-layout {
    display: block;
}

.services-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

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

.service-column {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-column h3 {
    color: #2e8b57;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-column h3 i {
    font-size: 1.2rem;
}

.service-column ul {
    list-style: none;
    padding: 0;
}

.service-column li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.service-column li:last-child {
    border-bottom: none;
}

.service-column li::before {
    content: "•";
    color: #2e8b57;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0.5rem;
}



.cta-section {
    background: linear-gradient(135deg, #2e8b57 0%, #1a5e3a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #2a2a2a;
    color: #2e8b57;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Mobile Styles for Services Page */
@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
    

    
    .services-text h2 {
        font-size: 2rem;
    }
    
    .services-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-column {
        padding: 1.5rem;
    }
    
    .service-column h3 {
        font-size: 1.2rem;
    }
    

    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .services-footer {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .services-more {
        font-size: 1.1rem;
    }
}
