/* General Styles */

:root {
    --primary-color: #1D1D1D;
    --accent-color: #2C3E50;
    --secondary-accent-color: #0e2b53;
    --secondary-color: #F5F5F5;
    --third-color: #F5F5F5;
    --highlight-color: #E9C46A;
    --text-color: #2C2C2C;
    --text-color-subtle: #757575;
    --background-color: #F9F9F9;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}


/* Industrial */


/* :root {
    --primary-color: #4E4E50;
    --accent-color: #FF715B;
    --secondary-color: #D9D9D9;
    --highlight-color: #FFE156;
    --text-color: #2E2E2E;
} */


/* Retro vibes */


/* :root {
    --primary-color: #FF8C42;
    --accent-color: #4A4E69;
    --secondary-color: #F2E9E4;
    --highlight-color: #9A8C98;
    --text-color: #22223B;
} */

body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.8;
    width: 100%;
    /* padding: 20px; */
}

.container {
    padding: 20px;
}


/* Navigation Bar Styles */

nav {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Logo Styling */

nav .logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
}


/* Navigation Links */

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav ul li a:hover {
    color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.1);
}


/* Mobile Navigation (Optional) */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    nav .logo {
        margin-bottom: 1rem;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    nav ul li a {
        padding: 0.5rem 0;
    }
}


/* Hamburger Menu Toggle */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 1100;
}

.menu-toggle .bar {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}


/* Active State - Transform into 'X' */


/* 
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
} */


/* Mobile Navigation Menu */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: fixed;
        right: 1.5rem;
        top: 1.2rem;
    }
    nav ul {
        display: none;
        flex-direction: column;
        background: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 1rem;
        z-index: 1000;
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 0.75rem 0;
        text-align: center;
    }
    nav ul li a {
        font-size: 1.2rem;
        color: #fff;
        text-decoration: none;
    }
    nav ul li a:hover {
        color: var(--highlight-color);
    }
}


/* Typography */

h1,
h2,
h3 {
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}


/* Hero Section */

.hero {
    background: linear-gradient(#4A4E69b3, rgba(44, 54, 122, 0.702)), url('images/pergola_banner.jpeg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    max-width: 700px;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

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

.cta-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: var(--highlight-color);
}


/* Statement Section */

.statement {
    background: var(--accent-color);
    color: var(--background-color);
    padding: 4rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 25vh;
}

.statement h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: var(--highlight-color);
}

.statement p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .statement h2 {
        font-size: 2rem;
    }
    .statement p {
        font-size: 1rem;
    }
}


/* Features Section */

.features {
    background: var(--background-color);
    padding: 3rem 0;
    text-align: center;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-item {
    flex: 1 1 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
    padding: 1.5rem;
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    background: var(--accent-color);
    color: var(--background-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .feature-item {
        flex: 1 1 100%;
    }
}


/* About Section Redesign */

.about-content {
    display: grid;
    grid-template-columns: 50% 50%;
}

.about {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-image {
    /* flex: 2; */
    /* max-width: 50%; */
    float: right;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.about-text {
    flex: 1;
    /* max-width: 50%; */
}

.about-text h2 {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

.about-text .cta-btn {
    /* text-align: center; */
    float: right;
    margin-top: 2.5rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.about-text .cta-btn:hover {
    background: var(--highlight-color);
}


/* Responsive Design for About Section */

@media (max-width: 768px) {
    .about .container {
        flex-direction: column;
        /* Stack elements vertically */
        text-align: center;
        /* padding: 1.5rem; */
        /* Add padding for better spacing */
    }
    .about-image,
    .about-text {
        max-width: 100%;
        /* Ensure the elements take up the full width */
    }
    .about-image img {
        width: 100%;
        /* Ensure the image resizes correctly */
        height: auto;
        /* Maintain aspect ratio */
        margin-bottom: 1.5rem;
        /* Add spacing between image and text */
    }
    .about-text h2 {
        font-size: 2rem;
        /* Adjust heading size for smaller screens */
        margin-bottom: 1rem;
        /* Space below the heading */
    }
    .about-text p {
        font-size: 1rem;
        line-height: 1.5;
        /* Improve text readability */
        margin-bottom: 1rem;
        /* Space below each paragraph */
    }
    .about-text .cta-btn {
        display: inline-block;
        margin: 1.5rem auto 0;
        /* Center button and add top margin */
    }
    .about-content {
        display: block;
    }
}


/* Services Section */

.services h2 {
    color: var(--accent-color);
}


/* Tabs Container */

.tabs {
    text-align: center;
}


/* Tab Buttons */

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-button.active {
    background: var(--highlight-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tab-button:hover {
    background: var(--highlight-color);
    color: #fff;
    transform: translateY(-2px);
}


/* Tab Content */

.tab-content {
    display: none;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content h3 {
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

.tab-content p {
    color: var(--text-color-subtle);
}

.tab-content img {
    width: 100%;
    max-width: 600px;
    margin-top: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* Fade-In Animation */

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


/* Responsive Design for Tabs */

@media (max-width: 768px) {
    .tab-buttons {
        width: 70%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 50% 50%;
    }
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    .tab-content h3 {
        font-size: 1.5rem;
    }
    .tab-content img {
        max-width: 100%;
    }
}


/* Fade-In Animation */

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


/* Gallery Section */


/* Projects Section */

.projects {
    background: var(--secondary-color);
    padding: 4rem 0;
    padding: 10px;
}

.projects h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}


/* Horizontal Scroll */

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
}

.project-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: var(--background-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.project-item h3 {
    margin: 1rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    background: var(--secondary-color);
    color: var(--accent-color);
    font-weight: bold;
    border-radius: 0 0 12px 12px;
}

.project-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* Smooth Scrolling */

.horizontal-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: transparent;
}


/* Responsive Design */

@media (max-width: 768px) {
    .horizontal-scroll {
        gap: 1rem;
    }
    .project-item {
        flex: 0 0 250px;
    }
    .project-item img {
        height: 150px;
    }
    .project-item h3 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .project-row {
        flex-direction: column;
        text-align: center;
    }
    .project-row.reverse {
        flex-direction: column;
    }
}


/* Testimonials Section */

.testimonials {
    background: var(--secondary-accent-color);
    padding: 4rem 0;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: white;
}

.testimonial {
    background: #fff;
    border-left: 4px solid var(--highlight-color);
    margin: 1.5rem auto;
    max-width: 600px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 4px 8px #ffffff94;
    border-radius: 5px;
}

.testimonial blockquote {
    font-style: italic;
    margin: 0 0 1rem;
}

.testimonial span {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: right;
}


/* Contact Section */

.contact {
    background: var(--background-color);
    padding: 4rem 0;
    text-align: center;
}

.contact h2 {
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
    font-size: 2.5rem;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 0.75rem;
    border: 1px solid var(--highlight-color);
    border-radius: 5px;
    font-size: 1rem;
}

.contact textarea {
    height: 150px;
    resize: none;
}

.contact button {
    margin-top: 1rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact button:hover {
    background: var(--highlight-color);
}


/* Contact Page */

h2 {
    text-align: center;
    padding: 1.5rem 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 1100;
}

.menu-toggle .bar {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    nav ul {
        display: none;
        flex-direction: column;
        background: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 1rem;
        z-index: 1000;
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }
}

.contact-page {
    padding: 4rem 0;
    text-align: center;
}

.contact-page h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-page p {
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.contact-page form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-page input,
.contact-page textarea {
    padding: 0.75rem;
    border: 1px solid var(--highlight-color);
    border-radius: 5px;
    font-size: 1rem;
}

.contact-page textarea {
    height: 150px;
    resize: none;
}

.contact-page button {
    margin-top: 1rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-page button:hover {
    background: var(--highlight-color);
}


/* CTA Section */

.cta {
    background: var(--accent-color);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-btn {
    background: var(--highlight-color);
    color: #fff;
}

.cta-btn:hover {
    background: var(--primary-color);
}


/* Footer */

footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

footer ul li {
    display: inline;
    margin: 0 10px;
}

footer a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.about-text,
.testimonial,
.cta {
    padding: 1.5rem;
}


/* Scroll Button Styling */

.scroll-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-button:hover {
    background: var(--highlight-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.scroll-button i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.scroll-button:hover i {
    transform: scale(1.2);
}

.scroll-button.show {
    opacity: 1;
    visibility: visible;
}


/* Media Query for Mobile */

@media (max-width: 768px) {
    .scroll-button {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .scroll-button i {
        font-size: 1.2rem;
    }
}


/* General Animation Keyframes */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Hero Section Animation */

.hero {
    animation: fadeIn 1s ease-out;
}


/* Statement Section Animation */

.statement h2,
.statement p {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.statement h2 {
    animation-delay: 0.2s;
}

.statement p {
    animation-delay: 0.4s;
}


/* Tabs Animation */

.tab-content {
    animation: fadeIn 0.5s ease-out;
}


/* Projects Section Animation */

.project-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Testimonials Animation */

.testimonial {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial.in-viewport {
    opacity: 1;
    transform: translateY(0);
}