/* General styling for modern look */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* Enhanced navbar styling */
.navbar {
    background-image: linear-gradient(to right, #09651c, #062e07);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem;
    transition: all 0.3s ease-in-out;
}

.navbar-brand img {
    max-width: 50px;
    height: auto;
    filter: brightness(0) invert(1); /* Makes dark logo visible on dark background */
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

/* Enhanced hero section */
.hero-section {
    position: relative;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-im.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-inner {
    height: calc(100vh - 76px);
    display: flex;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

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

/* Enhanced service cards */
.service-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #09651c, #062e07);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 1rem 0;
    color: #333;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Enhanced sections */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #09651c, #062e07);
    border-radius: 2px;
}

/* About section enhancements */
.about-us-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.company-overview {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Enhanced contact section */
.contact-us-section {
    background: linear-gradient(135deg, #09651c, #062e07);
    color: white;
    padding: 5rem 0;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

/* Footer enhancements */
.footer {
    background: #062e07;
    color: #fff;
    padding: 2rem 0;
}

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

.footer-content .copyright {
    margin-bottom: 0.5rem;
}

.footer-content .brand-info {
    margin-bottom: 0;
}

.footer-content a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-content a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* Testimonials section */
.testimonial-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 1rem;
}

/* Call to action button */
.cta-button {
    background: linear-gradient(135deg, #09651c, #062e07);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    border: none;
    font-weight: 600;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(9,101,28,0.3);
    color: white;
}

/* Enhanced header styles */
.header-highlight {
    color: #09651c;
    font-weight: 700;
}

/* Clients section */
.clients-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.client-logo {
    max-width: 150px;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    margin: 1rem;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    padding: 2rem 0;
}

/* Enhanced contact section */
.contact-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #09651c, #062e07);
    color: white;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pcube.png') center/contain no-repeat;
    opacity: 0.03;
    pointer-events: none;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.contact-info-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-info-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-info-card:hover i {
    transform: scale(1.1);
}

.contact-info-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-info-card a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-info-card a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-info-card .contact-details {
    margin: 2rem 0;
}

.contact-info-card .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.contact-info-card .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Company logos positioning */
.main-logo-container {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.main-logo {
    max-width: 200px;
    height: auto;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

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

/* Contact pills styling */
.contact-pills {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-pill {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-pill:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-pill i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-pill:hover i {
    transform: scale(1.1);
}

.contact-pill h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-pill p,
.contact-pill a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-pill a:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

/* Improved text contrast for accessibility */
.service-card p {
    color: #555;
}

.hero-section .lead {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Print styles for better SEO */
@media print {
    .hero-section {
        height: auto;
        background: none;
    }
    
    .hero-section .text-white {
        color: #000 !important;
    }
    
    .service-card,
    .contact-pill {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .navbar-toggler,
    .btn-cta,
    .footer {
        display: none;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #09651c;
    outline-offset: 2px;
}

/* Skip to main content for accessibility */
.skip-to-main-content {
    position: absolute;
    left: -999px;
    width: 1px;
    height: 1px;
    top: auto;
}

.skip-to-main-content:focus {
    display: inline-block;
    height: auto;
    width: auto;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem;
    background: #09651c;
    color: white;
    z-index: 9999;
}

/* Loading optimization */
.hero-section {
    background-color: #062e07; /* Fallback before image loads */
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}