@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    background: #eaeaea;
    color: #222;
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Base logo container */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideIn 0.8s ease-out forwards;
}

/* Logo image */
.logo-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

/* Title + subtext wrapper */
.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* Main title */
.logo-text {
    font-size: 25px;
    color: #1e5d1d;
    font-weight: 600;
    white-space: nowrap;
}

/* Subtitle */
.logo-subtext {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* Hover effects */
.logo:hover .logo-icon {
    transform: scale(1.1) rotate(3deg);
}

.logo:hover .logo-text-group {
    color: #2a7b2a;
}

.navbar a {
    display: inline-block;
    font-size: 18px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    margin: 0 20px;
    transition: color 0.3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    color: #25731d;
    font-weight: 600;
}

.navbar a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #25731d;
    margin-top: 5px;
    transition: width 0.3s;
}

.social-media {
    display: flex;
    justify-content: space-between;
    width: 150px;
    height: 40px;
    gap: 15px;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid transparent;
    text-decoration: none;
    transform: rotate(45deg);
    transition: .5s;
    opacity: 0;
    animation: slideSci .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.social-media a:hover {
    border-color: #222;
}

.social-media a i {
    font-size: 24px;
    color: #222;
    transform: rotate(-45deg);
}

.home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 8% 0;
}

.home-content {
    max-width: 630px;
}

.home-content h1 {
    font-size: 50px;
    color: #1e5d1d;
    line-height: 1.2;
    font-weight: bolder;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 1s;
}

.home-content h3 {
    font-size: 30px;
    color: #222;
    margin: 10px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1.3s;
}

.home-content p {
    font-size: 18px;
    margin: 15px 0 30px;
    opacity: 0;
    color: #333;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.6s;
}

.home-img {
    position: relative;
    right: -7%;
    width: 450px;
    height: 450px;
}

.home-img-square {
    width: 450px;
    height: 450px;
    background-color: #222;
    border: 25px solid #1e5d1d;
    box-shadow: -15px 15px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomOut 1s ease forwards;
    opacity: 0;
    animation-delay: 1.6s;
}

.logo-square-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: house 1s ease forwards;
    animation-delay: 2s;
    opacity: 0;
}

.home .rhombus-home {
    position: absolute;
    top: -25%;
    right: -25%;
    width: 1000px;
    height: 1600px;
    background: #25731d;
    transform: rotate(45deg);
    z-index: -1;
    opacity: 0;
    box-shadow: -15px 15px 15px rgba(0, 0, 0, 0.2);
    animation: rhombus-home 1s ease forwards;
}

/* KEYFRAMES ANIMATIONS */

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideSci {
    0% {
        transform: translateX(100px) rotate(45deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(45deg);
        opacity: 1;
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes house {
    0% {
        transform: translate(300px, -300px) scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes rhombus-home {
    0% {
        right: -40px;
        opacity: 0;
    }
    100% {
        right: -20%;
        opacity: 1;
    }
}

/* About Section */
.about {
    padding: 100px 8%;
    background: #fff;
    color: #555;
}

.about-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color:#25731d
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.5s;
}

/* Services Section */
.services {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 100px 8%;
}

.rhombus-services {
    position: absolute;
    top: -25%;
    right: -25%;
    width: 1000px;
    height: 1000px;
    background: #25731d;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: -1;
    opacity: 0;
    animation: rhombus2 1s ease forwards;
    animation-delay: 0.3s;
}


.services .section-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    color: #1e5d1d;
}

.service-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: #555;
    font-size: 16px;
}

.service-item {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

/* Projects Section */
.projects {
    padding: 100px 8%;
    background: #fff;  
}

.projects .section-title {
    font-size: 40px;
    margin-bottom: 40px;
    color: #25731d;
}

.project-gallery {
    display: flex;
    justify-content: space-between;
}

.project-item {
    width: 30%;
    text-align: center;
    color: #555;
}

.project-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease, border-radius 0.3s ease;
}

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

.see-more-btn {
    padding: 12px 24px;
    background: #25731d;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.see-more-btn:hover {
    background: #1e5d1d;
}

.hidden-gallery {
    display: none;
    margin-top: 40px;
    padding: 0 8%;
}

.hidden-gallery.active {
    display: block;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.03);
}

/* Smooth transition for buttons */
.see-more-btn {
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  
  /* Hidden button (fades out) */
  .hidden-btn {
    opacity: 0;
    pointer-events: none;
  }

/* Contact Section */
.contact {
    padding: 100px 8%;
    background: #25731d;
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
}

.contact .section-title {
    font-size: 40px;
    margin-bottom: 30px;
}

.contact-info ul {
    list-style-type: none;
    padding: 0;
}

.contact-info ul li {
    margin: 10px 0;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
}

.contact-form button {
    padding: 12px 20px;
    background: #fff;
    color: #25731d;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #1e5d1d;
    color: #fff;
}

.contact-info a {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
  }
  
  .contact-info a:hover {
    background-color: #25731d; /* Your brand green */
    color: #222;
    font-weight: 500;
    font-size: 18px;
  }

/* Responsive Design For Other Devices*/
@media (max-width: 1024px) {
    .home {
        flex-direction: column;
        height: auto;
        padding: 120px 5% 40px;
        text-align: center;
    }
    .home-content {
        max-width: 100%;
    }
    .home-img-square {
        width: 80%;
        height: auto;
        margin-top: 30px;
    }
    .navbar {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }
    .navbar a {
        display: flex;
        margin: 10px 0;
        font-size: 16px;
    }
    .header {
        flex-wrap: wrap;
    }
    .social-media {
        margin-top: 10px;
    }
    .service-list, .project-gallery, .photo-grid {
        flex-direction: column;
        align-items: center;
    }
    .project-item, .service-item {
        width: 90%;
        margin-bottom: 20px;
    }
    .contact-form input, .contact-form textarea {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .home-content h1 {
        font-size: 36px;
    }
    .home-content h3 {
        font-size: 20px;
    }
    .navbar a {
        font-size: 14px;
    }
    .logo {
        height: 60px;
    }
    .social-media {
        gap: 10px;
        width: 120px;
    }
}
/* Mobile responsive styles */

@media (max-width: 768px) {
    .header {
        padding: 10px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar {
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
    }

    .navbar a {
        display: block;
        margin: 10px 0;
    }

    .social-media {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .home {
        flex-direction: column;
        padding: 120px 5% 50px;
        height: auto;
        text-align: center;
    }

    .home-content {
        max-width: 100%;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .home-content h3 {
        font-size: 22px;
    }

    .home-img-square {
        width: 100%;
        height: auto;
        margin-top: 30px;
        border-width: 10px;
    }

    .logo-square-img {
        width: 100%;
        height: auto;
    }

    .services .service-list {
        flex-direction: column;
        gap: 20px;
    }

    .project-gallery,
    .photo-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 28px;
    }

    .home-content h3 {
        font-size: 18px;
    }

    .navbar a {
        font-size: 16px;
    }

    .social-media a i {
        font-size: 20px;
    }

    .contact-info li {
        font-size: 14px;
    }
}