/* Global Styles */
:root {
    --primary-color: #ebf7a5;   /* Light Yellow-Green */
    --primary-light-color: #f6fade;   /* Lighter Yellow-Green */
    --secondary-color: #4a5d23; /* Dark Olive Green */
    --background-color: #ffffff; /* White */
    --text-color: #2c3e50;       /* Dark Blue-Grey */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, .logo {
    font-family: var(--font-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo-image {
    height: 50px; /* Adjust as needed */
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: white;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./MrNaiPromo.gif') center 30%/cover no-repeat;
    filter: blur(2px);
    opacity: 0.5;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.slide-text {
    flex: 1;
    padding-right: 2rem;
    text-align: left;
    color: var(--text-color);
}

.slide-text h1 {
    font-size: 3rem;
}

.slide-image {
    flex: 1;
}

.slide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

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

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-top: 1rem;   
}

.cta-button:hover {
    background: #d4e07a;
    color: var(--secondary-color);
}

.centered-header {
    text-align: center;
}

.stylish-header {
    display: inline-block;
    position: relative;
    padding: 0 2.5em;
    color: #333333;
}

.stylish-header::before,
.stylish-header::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 50%;
    width: 45px;
    height: 3px;
    background-color: var(--secondary-color);
}

.stylish-header::before {
    left: 0;
}

.stylish-header::after {
    right: 0;
}


/* Services Section */
.services {
    padding: 5rem 2rem;
    background: var(--background-color);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

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

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

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

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.toggle-services-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.toggle-services-btn:hover {
    background: #d4e07a;
    transform: translateY(-2px);
}

.services-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease;
    padding: 0 1rem;
}

.services-list.active {
    max-height: 200px;
    padding: 1rem;
}

.services-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    font-size: 0.95rem;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list li::before {
    content: "• ";
    color: var(--primary-color);
    font-weight: bold;
}

/* Founders Section */
.founders {
    padding: 5rem 2rem 2rem 2rem;
    background: var(--primary-light-color);
    position: relative;
    overflow: hidden;
}

.founders h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.founders-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.founders-image {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: auto;
}

.founders-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border-top: #eee 1rem solid;
    border-bottom: #eee 1rem solid;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    /* Apply gradient opacity to blend left and right sides */
    mask-image: linear-gradient(to right, 
        transparent 0%, 
        black 20%, 
        black 80%, 
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(to right, 
        transparent 0%, 
        black 20%, 
        black 80%, 
        transparent 100%
    );
}

.founders-text {
    padding: 2rem;
}

.founders-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background: #f9f9f9;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 2rem;
    background: var(--background-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.testimonial-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 calc(50% - 1rem); /* Show 2 at a time on larger screens */
    margin: 0 0.5rem;
    background: #f9f9f9;;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.prev-testimonial {
    left: 10px;
}

.next-testimonial {
    right: 10px;
}

.testimonial-card {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: #f9f9f9;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary-color);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 400px; /* Ensure a minimum height */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.3s ease;
}

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

.footer-social a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #5a5a5a;
}

/* Scroll Animation */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--background-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 100;
    }

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

    .burger {
        display: block;
        cursor: pointer;
    }

    .line1,
    .line2,
    .line3 {
        width: 25px;
        height: 3px;
        background: var(--secondary-color);
        margin: 5px;
        transition: all 0.3s ease;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        padding-top: calc(60px + 3rem); /* Add padding to push content below fixed navbar */
        justify-content: center; /* Better center content vertically */
    }

    .slide-text {
        padding: 2rem;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.4); /* Semi-transparent white */
        border-radius: 15px;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .hero-content h1, .slide-text h1 {
        font-size: 2rem;
    }

    .hero-content p, .slide-text p {
        font-size: 1rem;
    }

    .services-grid,
    .contact-container,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex: 0 0 100%; /* Show 1 at a time on smaller screens */
    }

    .contact-container {
        text-align: center;
    }

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

    .footer-social {
        justify-content: center;
        display: flex;
        gap: 1rem;
    }
}
