:root {
    --primary: #228B22;
    --primary-dark: #e65c00;
    --secondary: #333;
    --light: #f5f5f5;
    --dark: #222;
    --text-dark: #333;
    --text-light: #f5f5f5;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color:  #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

/* Header Styles with Animations */
header {
    background-color: #dbdee4;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInDown 0.5s ease-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    animation: fadeInLeft 0.8s ease-out;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.logo:hover h1 {
    transform: scale(1.05);
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    animation: fadeInRight 0.8s ease-out;
}

nav ul li {
    margin-left: 25px;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: var(--delay, 0s);
}

nav ul li:nth-child(1) { --delay: 0.1s; }
nav ul li:nth-child(2) { --delay: 0.2s; }
nav ul li:nth-child(3) { --delay: 0.3s; }
nav ul li:nth-child(4) { --delay: 0.4s; }
nav ul li:nth-child(5) { --delay: 0.5s; }

nav ul li a {
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2%;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: left 0.3s ease;
}

nav ul li a:hover::before {
    left: 0;
}

nav ul li a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu:hover {
    transform: scale(1.1);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Hero Section with Enhanced Animations */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/api/placeholder/1200/800') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.3), transparent);
    animation: shimmer 3s infinite;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* space between logo and text */
}

.logo-img {
    height: 40px; /* adjust as needed */
    width: auto;
}



@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-content {
    max-width: 1150px;
    position: relative;
    z-index: 1;
    margin: 0 auto; /* This centers horizontally */
    text-align: center; /* Optional – centers text inside */
}

.hero h1 {
    font-size: 55px;
    font-weight: 1000;
    margin-bottom: 5px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero p {
    font-size: 15px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Services Section with Staggered Animations */
.section {
    padding: 30px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 50px;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    transition: all 0.3s ease;
   
}

.section-title h2:hover {
    transform: scale(1.05);
    color: var(--primary);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.6s ease;
}

.section-title.animate h2::after {
    width: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1).animate { animation-delay: 0.1s; }
.service-card:nth-child(2).animate { animation-delay: 0.3s; }
.service-card:nth-child(3).animate { animation-delay: 0.5s; }

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-img {
    height: 210px;
    background-color: #ddd;
    overflow: hidden;
}

.service-img img {
    transition: transform 0.4s ease;
}

.service-content {
    padding: 10px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.service-card:hover .service-content h3 {
    color: var(--primary);
}

/* Projects Section with Advanced Animations */
.projects {
    background-color: var(--light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.project-img {
    height: 250px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.project-img img {
    transition: all 0.4s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1) rotate(2deg);
}

.project-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.project-card:hover .project-category {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--primary);
}

/* Filter Buttons with Animations */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Stats Section with Counter Animation */
.stats {
    background-color: var(--secondary);
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.stat-item.animate {
    opacity: 1;
    transform: scale(1);
    animation: bounce 0.8s ease-out;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-item h3 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.stat-item:hover h3 {
    animation: pulse 1s infinite;
}

/* Contact Section Animations */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.contact-form.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-info {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.contact-info.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(34, 139, 34, 0.3);
    transform: translateY(-2px);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
}

.contact-item:hover {
    background-color: rgba(34, 139, 34, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    color: var(--primary);
    font-size: 24px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    animation: bounce 0.6s ease;
    transform: scale(1.2);
}

.contact-details h4 {
    margin-bottom: 5px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-details h4 {
    color: var(--primary);
}

.contact-details p {
    color: #666;
    margin-bottom: 5px;
}

/* Video Section Animation */
.video-viewer {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.video-viewer.animate {
    opacity: 1;
    transform: scale(1);
}

.video-container video {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.video-container:hover video {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Footer Animation */
footer {
    background-color: var(--dark);
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

/* Project Modal Enhanced Animations */
.project-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.project-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.5s ease-out;
}

.project-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-modal-header h2 {
    margin: 0;
    font-size: 28px;
    animation: fadeInLeft 0.6s ease-out;
}

.close-project-modal {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: fadeInRight 0.6s ease-out;
}

.close-project-modal:hover {
    background-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.project-modal-body {
    padding: 30px;
}

.project-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
    transition: transform 0.3s ease;
}

.project-hero-image:hover {
    transform: scale(1.02);
}

.project-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.project-description {
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.project-features {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.project-description h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 24px;
}

.project-description p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.project-features {
    background-color: var(--light);
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.project-features:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-features h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    padding-left: 10px;
    background-color: rgba(34, 139, 34, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list strong {
    color: var(--primary);
}

.project-gallery {
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.project-gallery h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(1deg);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Section Animations */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.about-content.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-content h3 {
    transition: color 0.3s ease;
}

.about-content:hover h3 {
    color: var(--primary);
}

.about-content ul li {
    transition: all 0.3s ease;
}

.about-content ul li:hover {
    transform: translateX(10px);
    color: var(--primary);
}

/* Responsive Enhancements */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.active {
        max-height: 400px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 10px 0;
        animation: slideInDown 0.3s ease-out;
        animation-delay: calc(var(--index) * 0.1s);
    }
    
    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 60vh;
    }
}

/* Responsive for modal */
@media (max-width: 768px) {
    .project-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-modal-header {
        padding: 15px 20px;
    }

    .project-modal-body {
        padding: 20px;
    }

    .project-hero-image {
        height: 250px;
    }
}

/* Custom Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.6s ease-in-out;
}



/* Add fadeOut animation (moved from JS) */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Add modal slide out animation (moved from JS) */
@keyframes modalSlideOut {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
}