/* 
 * Green Dream House - Main Stylesheet
 * Eco-friendly wooden houses website
 */

/* Base styles and variables */
:root {
    --primary-color: #4a7c59;
    --secondary-color: #8a9e78;
    --accent-color: #d8b26e;
    --dark-color: #2c3e2e;
    --light-color: #f4f5f0d3;
    --text-color: #333333;
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
}

/* White section titles for specific sections */
.about-section .section-title,
.sustainability-section .section-title,
.testimonials-section .section-title {
    color: white;
}

/* Header and Navigation */
.hero {
    height: 100vh;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/main.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: var(--shadow);
    padding: 1rem 5%;
}

.navbar.scrolled .logo h1,
.navbar.scrolled .nav-links a {
    color: white;
}

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

.logo-image {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo-image {
    height: 50px;
}

.logo h1 {
    font-size: 1.8rem;
    color: white;
    margin: 0;
}

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

.nav-links a {
    color: white;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .container {
        width: 95%;
        max-width: 100%;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        z-index: 999;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.3s ease-in-out;
    }
    
    .nav-links.active a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo, .footer-links, .footer-social {
        margin-bottom: 2rem;
    }
    
    .footer-logo-image {
        margin: 0.5rem auto;
    }
    
    .collaboration-logos {
        gap: 1rem;
    }
    
    .collaboration-logos img {
        height: 30px;
    }
    
    .about-section, 
    .testimonials-section {
        padding: 3rem 0;
        background-attachment: scroll;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-image img {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .collaboration-partners {
        grid-template-columns: 1fr;
    }
    
    .about-section,
    .testimonials-section {
        padding: 2.5rem 0;
    }
    
    .project-image {
        height: 200px;
    }
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    z-index: 1;
}

.hero-content-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    max-width: 800px;
    width: 90%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

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

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: white;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/las.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.about-text h2,
.about-text h3 {
    color: white;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.feature {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

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

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

/* Project Slider */
.project-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.project-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.project-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Project slide backgrounds with actual images */
#project-slide-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Bez nazwy\(7\).jpg');
    background-size: cover;
    background-position: center;
}

#project-slide-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/dom stodoła2.jpg');
    background-size: cover;
    background-position: center;
}

#project-slide-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Bez nazwy\(6\).jpg');
    background-size: cover;
    background-position: center;
}

#project-slide-4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Bez nazwy\(9\).jpg');
    background-size: cover;
    background-position: center;
}

#project-slide-5 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Bez nazwy\(17\).jpg');
    background-size: cover;
    background-position: center;
}

#project-slide-6 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Bez nazwy(8).jpg');
    background-size: cover;
    background-position: center;
}

#project-slide-7 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/Bez nazwy\(4\).jpg');
    background-size: cover;
    background-position: center;
}

.project-content {
    display: none;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.slider-arrow {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--accent-color);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Parallax Section */
.parallax-section {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/livid woods.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.parallax-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.parallax-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.parallax-content p {
    font-size: 1.5rem;
    max-width: 700px;
}

/* Sustainability Section */
.sustainability-section {
    position: relative;
    padding: 5rem 0;
    color: white;
    overflow: hidden;
}

.sustainability-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
}

.sustainability-bg-left,
.sustainability-bg-center,
.sustainability-bg-right {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.sustainability-bg-left {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/greem house.png');
}

.sustainability-bg-center {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/Bez nazwy(22).jpg');
}

.sustainability-bg-right {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/Bez nazwy(7).jpg');
}

.sustainability-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.sustainability-text {
    flex: 1;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
}

.sustainability-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.eco-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.eco-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.eco-icon {
    font-size: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.eco-description h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Latest Project Section */
.latest-project-section {
    padding: 5rem 0;
    background-color: white;
}

.project-content {
    max-width: 1200px;
    margin: 0 auto;
}

.project-images {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

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

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

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/Bez nazwy(20).jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    flex: 0 1 300px;
    padding: 2rem;
}

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

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.testimonial-author-info p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-container {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.2);
}

.submit-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.contact-info {
    padding: 2rem;
}

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

.contact-info p {
    margin-bottom: 1rem;
}

.map {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    margin-bottom: 1rem;
}

.footer-logo-image {
    max-width: 120px;
    margin-top: 0.5rem;
    display: block;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

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

.footer h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.social-icon {
    color: white;
    font-size: 1.1rem;
}

.collaboration {
    margin-bottom: 2rem;
    text-align: center;
}

.collaboration h4 {
    margin-bottom: 1rem;
}

.collaboration-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.collaboration-logos img {
    height: 40px;
    opacity: 0.8;
    transition: var(--transition);
}

.collaboration-logos img:hover {
    opacity: 1;
}

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

}
/* Visitor Count Styles */
.footer-visitor-count {
    /* Flex properties inherited from .footer-content children */
}

.footer-visitor-count h4 {
    /* Inherits from .footer h4 (color: white; margin-bottom: 1rem;) */
}

.footer-visitor-count p {
    color: rgba(255, 255, 255, 0.8); /* Match link color or use plain white */
    margin-bottom: 0; /* Assuming it's the last item in its block */
    font-size: 1rem; /* Or match other footer paragraph text */
}
/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .sustainability-features,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .project-images {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}
