:root {
    --amber: #F59E0B; /* Amber for headers */
    --amber-dark: #D97706; /* Darker amber for hover */
    --emerald: #059669; /* Emerald for buttons */
    --emerald-dark: #047857; /* Darker emerald for hover */
    --gray-nav: #374151; /* Gray for navigation */
    --gray-light: #4B5563; /* Lighter gray for hover */
    --white: #ffffff;
    --gray-text: #6B7280; /* For regular text */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(45deg, rgba(5, 150, 105, 0.85), rgba(245, 158, 11, 0.85));
    --gradient-2: linear-gradient(135deg, rgba(55, 65, 81, 0.9), rgba(17, 24, 39, 0.9));
    --blur-effect: blur(10px);
    --container-padding-mobile: 1rem;
    --section-padding-mobile: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(44, 51, 63, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust based on your logo size */
    width: auto;
    object-fit: contain;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo a:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

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

.nav-button {
    background: var(--emerald);
    padding: 0.75rem 1.5rem !important;
    border-radius: 5px;
    color: var(--white) !important;
}

.nav-button:hover {
    background: var(--emerald-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #2F3B35; /* Fallback color matching your theme */
    background-image: url('./assets/images/backgrounds/background.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Add a dark overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Ensure content appears above the overlay */
.hero * {
    position: relative;
    z-index: 2;
}

/* Enhanced text visibility */
.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 2.5rem;
}

.hero-text {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 1.25rem;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    color: white;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFD700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* Increased shadow for better contrast */
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #f0f0f0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    animation: fadeIn 1s ease 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.9s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    border: none;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.hero::before {
    content: none; /* This effectively removes the overlay */
}

.hero-content {
    z-index: 2;
}

.section {
    padding: 5rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--amber);
    margin-bottom: 0.25rem;
}

.section-subtitle {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

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

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    font-size: 2rem;
    color: #059669;
}

.learn-more-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.learn-more-btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

@media (max-width: 968px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        display: none; /* Hide default menu */
    }

    .mobile-menu {
        display: block;
        cursor: pointer;
    }

    /* Mobile Menu Overlay */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(47, 59, 53, 0.98);
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000; /* Increased z-index to be above footer */
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav .nav-links {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: 4rem;
    }

    .mobile-nav .nav-links a {
        font-size: 1.5rem;
        color: white;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

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

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Features Section */
.bg-light {
    background-color: #f8f9fa;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--emerald);
    margin-bottom: 1.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

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

.project-info {
    padding: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    color: #666;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-details-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.view-details-btn:hover {
    background: #047857;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
    color: var(--white);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-number::after {
    content: '+';
    position: absolute;
    right: -20px;
    top: 0;
    color: var(--amber);
}

.stat-label {
    font-size: 1.1rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-details {
    margin-top: 2rem;
}

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

.contact-item i {
    color: var(--emerald);
    font-size: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--blur-effect);
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--emerald);
}

/* Footer */
.footer {
    background: linear-gradient(rgba(55, 65, 81, 0.98), rgba(55, 65, 81, 0.98)),
                url('https://www.transparenttextures.com/patterns/concrete-wall.png');
    color: var(--white);
    padding: 4rem 0 1rem;
    margin: 0;
    position: relative;
    width: 100%;
    bottom: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    justify-content: flex-start;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.footer-logo-container img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-logo-container p {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 2;
}

.footer-links a:hover {
    color: var(--amber);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--amber);
}

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

.footer-bottom a {
    color: #059669; /* or your preferred brand color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #047857; /* slightly darker shade for hover */
    text-decoration: underline;
}

/* Responsive Design Updates */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .social-icons {
        justify-content: center;
    }

    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-container img {
        height: 40px;
    }
}

/* Add animated gradient overlay for hero section */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(5, 150, 105, 0.4),
        rgba(245, 158, 11, 0.4)
    );
    animation: gradientAnimation 10s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add section dividers */
.section-divider {
    height: 100px;
    background: linear-gradient(to right bottom, #fff 49%, transparent 50%),
                linear-gradient(to left bottom, #fff 49%, transparent 50%);
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

/* Services Section - Subtle Pattern */
#services {
    background: linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Features Section - Modern Architecture */
#features {
    background: linear-gradient(rgba(248, 249, 250, 0.97), rgba(248, 249, 250, 0.97)),
                url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
}

/* Contact Section - Office Background */
#contact {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.float-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.float-item:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-item:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 5s;
}

.float-item:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.4;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.8;
    }
}

/* Animated Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

.element {
    background-image: url('./assets/images/backgrounds/background.jpg');
    background-size: cover;
    background-position: center;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Slightly smaller on mobile */
    }
}

/* Logo Container Styles */
.logo-container {
    position: relative;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px;
    transition: all 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

/* Logo Image Styles */
.logo-img {
    height: 80px;  /* Increased size */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Hover Effects */
.logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #059669, #047857);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-container:hover::before {
    opacity: 1;
}

/* Navigation Bar Styling */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: transparent;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        padding: 10px;
        margin: 10px;
    }
    
    .logo-img {
        height: 60px;
    }
}

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

/* About Section Styles */
#about {
    padding: 6rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.about-content {
    animation: fadeInLeft 1s ease;
}

.about-title {
    font-size: 2.8rem;
    color: var(--amber);
    margin-bottom: 2rem;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--emerald);
    border-radius: 2px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--emerald);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: rotate(360deg);
    background: var(--amber);
}

.about-image-container {
    position: relative;
    animation: fadeInRight 1s ease;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

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

/* Mobile Responsive */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        margin: 0 1rem;
    }
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section Mobile Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Services Section Mobile Styles */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Projects Section Mobile Styles */
@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        margin: 0 1rem;
    }
}

/* General Mobile Optimizations */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Spacing */
    .section {
        padding: var(--section-padding-mobile) 0;
    }
    
    .container {
        padding: 0 var(--container-padding-mobile);
    }

    /* Images */
    .responsive-img {
        width: 100%;
        height: auto;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Grid Layouts */
    .grid {
        grid-template-columns: 1fr !important;
    }

    /* Forms */
    input, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .hover-effect {
        display: none;
    }

    .touch-friendly {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
    }
}

/* Testimonials Section Styles */
#testimonials {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-dark);
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.client-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.client-project {
    color: var(--emerald);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

.mobile-nav {
    display: none;  /* Hide by default */
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(44, 51, 63, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 1001;
}

.mobile-nav.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Show mobile nav only on mobile devices */
@media (max-width: 968px) {
    .mobile-nav {
        display: block;
    }
    
    .nav-links {
        display: none; /* Hide desktop nav */
    }
    
    .mobile-menu {
        display: block; /* Show mobile menu icon */
    }
}

/* Hide mobile menu icon in desktop view */
.mobile-menu {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.featured-project {
    grid-column: 1 / -1;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

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

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 2;
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--amber);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-location {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

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

.detail-item i {
    color: var(--emerald);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .project-slider {
        height: 500px;
    }
    
    .slides {
        height: 500px;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
}

.service-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    position: relative;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.popup-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    padding: 1.5rem 2rem;
    position: relative;
}

.popup-header h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-popup i {
    color: white;
    font-size: 1.2rem;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 2rem;
    color: #374151;
    line-height: 1.8;
}

.popup-body ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.popup-body li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
}

.popup-body li::before {
    content: "•";
    color: #059669;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.popup-body li span.bullet {
    display: none;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-content {
    animation: popupFade 0.3s ease-out;
}

@media (max-width: 768px) {
    .popup-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .popup-header h3 {
        font-size: 1.5rem;
    }
}

/* Project Preview Card Styles */
.project-preview-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.project-info h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.location {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

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

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4b5563;
}

.detail-item i {
    color: #059669;
    font-size: 1.2rem;
}

.view-all-projects {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    padding: 0.8rem 2rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
}

.view-all-projects i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.view-all-projects:hover {
    background: #3a4a42;
    transform: translateX(-50%) translateY(-52px);
}

.view-all-projects:hover i {
    transform: translateX(3px);
}

/* Projects Panel Styles */
.projects-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.5s ease;
    overflow-y: auto;
}

.projects-panel.active {
    right: 0;
}

.projects-panel-header {
    background: #059669;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.projects-panel-header h2 {
    color: white;
    margin: 0;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.close-panel:hover {
    transform: rotate(90deg);
}

.projects-panel-content {
    padding: 2rem;
}

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

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    height: 200px;
}

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

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #059669;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.project-content {
    padding: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    color: #6b7280;
}

.project-details p {
    margin: 0.5rem 0;
    color: #4b5563;
}

@media (max-width: 768px) {
    .project-details-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Details Popup Styles */
.project-details-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

.popup-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    position: relative; /* Add this */
    max-height: 90vh; /* Add this */
    overflow-y: auto; /* Add this */
}

.popup-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.close-popup {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-popup i {
    color: white;
    font-size: 1.2rem;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.project-gallery {
    margin-bottom: 2rem;
}

.main-image {
    width: 100%;
    height: 500px;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

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

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.thumbnail {
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid #059669;
}

.thumbnail:hover {
    opacity: 1;
}

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

.project-info-details {
    color: #374151;
}

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

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

.info-item i {
    color: #059669;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 85vh;
        overflow-y: auto;
    }

    .popup-body {
        padding: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .project-gallery {
        margin-bottom: 1rem;
    }

    .main-image {
        height: 250px;
    }
}

.project-slider-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
}

.modal-slider {
    position: relative;
    width: 100%;
    height: 80vh;
}

.modal-slides {
    width: 100%;
    height: 100%;
}

.modal-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5, 150, 105, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Style for the View Projects button in hero section */
.view-projects {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-projects:hover {
    background: white;
    color: #059669;
}

.send-message-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: 500;
    margin-top: 1rem;
}

.send-message-btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

.ongoing-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.project-preview-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: 100%;
}

.project-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.project-preview-card h2 {
    color: #2F3B35;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-preview-card .location {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-item i {
    color: #2F3B35;
    font-size: 1.2rem;
}

.view-all-projects {
    display: block;
    margin: 1rem auto 0;
    padding: 1rem 2rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-all-projects:hover {
    background: #3a4a42;
}

/* Responsive design */
@media (max-width: 768px) {
    .ongoing-projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-preview-card {
        margin-bottom: 0.5rem;
    }
}

/* Add relative positioning to the parent container */
#features.container {
    position: relative;
    padding-bottom: 50px;
}
