/* General Body and Container Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px 0;
}

/* Header and Navigation */
header {
    background: #2c3e50;
    color: #ffffff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
    position: relative; /* Establish stacking context */
    z-index: 101; /* Ensure header and its children are above other content */
}

header h1 {
    float: left;
    margin: -20px 0 0 0;
    color: #ffffff;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    float: right;
}

header li {
    display: inline;
    padding: 0 15px;
    vertical-align: top; /* Align dropdown with top of other nav items */
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover {
    color: #77aaff;
    font-weight: bold;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: 180px; /* Increased min-width */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100; /* Increased z-index to ensure it appears above other elements */
    border-radius: 5px;
    top: 100%; /* Position directly below the dropdown button */
    left: 0; /* Align with the left edge of the dropdown button */
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    text-transform: none;
}

.dropdown-content a:hover {
    background-color: #5588cc;
    color: #ffffff;
    font-weight: normal;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section */
#hero {
    min-height: 400px;
    background: url('../images/HomeDesignHero-Cropped.png') no-repeat center center/cover;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

#hero h2 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    color: #ffffff;
    background: #77aaff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #5588cc;
}

/* Features Section */
#features {
    padding: 40px 0;
    background: #ffffff;
    text-align: center;
}

#features h3 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item h4 {
    color: #77aaff;
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* Photo Viewer Section */
#photo-viewer {
    padding: 40px 0;
    background: #eef4f9;
    text-align: center;
}

#photo-viewer h3 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.viewer-main {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Increased from 800px to 1200px (1.5x) */
    margin: 0 auto 30px auto; /* Adjusted margin */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.viewer-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.viewer-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Adjusted gap */
    margin-top: 30px; /* Adjusted margin */
}

.thumbnail {
    width: 150px; /* Increased from 100px to 150px (1.5x) */
    height: 105px; /* Increased from 70px to 105px (1.5x) */
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.thumbnail:hover {
    transform: translateY(-5px);
}

.thumbnail.active {
    border-color: #77aaff;
    box-shadow: 0 0 8px rgba(119, 170, 255, 0.7);
}

/* About Us Page Styles */
#about-hero {
    min-height: 250px;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/Kitchen.png') no-repeat center center/cover;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

#about-hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

#about-hero p {
    font-size: 1.1em;
}

.about-image-banner {
    background-color: #eef4f9; /* A nice light background color */
    padding: 30px 0;
    text-align: center;
}

.about-image-banner .about-image {
    max-width: 44%; /* Adjust size as needed */
    max-height: 400px;
    height: auto;
    display: block;
    margin: 0 auto; /* Center the image */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#about-content {
    padding: 0 0 40px 0;
    background: #ffffff;
}

.about-section {
    margin-bottom: 30px;
    padding: 20px; /* Added internal padding */
    background: #f9f9f9; /* Added a subtle background for visual separation */
    border-radius: 8px; /* Added rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Added a subtle shadow */
}

.about-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2em;
    border-bottom: 2px solid #77aaff;
    padding-bottom: 5px;
    display: inline-block;
}

/* Testimonials Page Styles */
#testimonials-hero {
    min-height: 250px;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/NewDen.png') no-repeat center center/cover;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

#testimonials-hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

#testimonials-content {
    padding: 40px 0;
    background: #f9f9f9;
}

.testimonial-card {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.testimonial-card .quote {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.testimonial-card .author {
    font-weight: bold;
    color: #2c3e50;
    text-align: right;
}

/* Contact Us Page Styles */
#contact-hero {
    min-height: 250px;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('../images/Kitchen.png') no-repeat center center/cover;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

#contact-hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

#contact-content {
    padding: 40px 0;
    background: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-form-container,
.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-info h3,
.contact-form-container h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 2px solid #77aaff;
    padding-bottom: 5px;
    display: inline-block;
}

.contact-info p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    padding: 20px;
    margin-top: 20px;
    color: #ffffff;
    background-color: #2c3e50;
    text-align: center;
}

/* House Plan Page Styles */
#house-plan-hero {
    min-height: 250px;
    background: linear-gradient(rgba(170, 204, 255, 0.7), rgba(170, 204, 255, 0.7)), url('../images/Kitchen.png') no-repeat center center/cover;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    position: relative; /* Ensure z-index works */
}

#house-plan-hero .container {
    position: relative;
    z-index: 2; /* Bring content above the overlay */
}

#house-plan-hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

#house-plan-hero p {
    font-size: 1.1em;
}

#house-plan-viewer {
    padding: 50px 0; /* Adjusted padding */
    background: #fdfdfd; /* Calming background */
    text-align: center;
}

.plan-viewer-main {
    position: relative;
    width: 100%;
    max-width: 1170px; /* Increased from 900px by 30% (900 * 1.3 = 1170) */
    margin: 0 auto 30px auto; /* Adjusted margin */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.plan-viewer-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease; /* Added transform for zoom */
    cursor: zoom-in;
}

.plan-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.plan-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.plan-left-arrow {
    left: 10px;
}

.plan-right-arrow {
    right: 10px;
}

.plan-viewer-thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Adjusted gap */
    margin-top: 30px; /* Adjusted margin */
}

.plan-thumbnail {
    width: 156px; /* Increased from 120px by 30% (120 * 1.3 = 156) */
    height: 104px; /* Increased from 80px by 30% (80 * 1.3 = 104) */
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.plan-thumbnail:hover {
    transform: translateY(-5px);
}

.plan-thumbnail.active {
    border-color: #77aaff;
    box-shadow: 0 0 8px rgba(119, 170, 255, 0.7);
}

#plan-description {
    padding: 50px 0; /* Adjusted padding */
    background: #ffffff;
    text-align: left;
    border-top: 1px solid #e0e0e0; /* Added subtle border */
    margin-top: 40px; /* Added margin-top */
}

#plan-description .container {
    max-width: 900px; /* Constrain width for better readability */
    margin: auto;
}

#plan-description h3 {
    color: #2c3e50;
    margin-bottom: 25px; /* Adjusted margin */
    font-size: 2.4em; /* Slightly larger heading */
    border-bottom: 3px solid #77aaff; /* Thicker border */
    padding-bottom: 10px; /* Adjusted padding */
    display: inline-block;
}

#plan-description p {
    margin-bottom: 18px; /* Adjusted margin */
    line-height: 1.9; /* Increased line height for readability */
    font-size: 1.05em; /* Slightly larger text */
    color: #444;
}

#plan-description ul {
    list-style: disc inside; /* Added bullet points */
    padding-left: 20px; /* Indent list */
    margin-bottom: 25px; /* Adjusted margin */
    line-height: 1.8;
}

#plan-description ul li {
    margin-bottom: 10px; /* Adjusted margin */
    font-size: 1.1em;
    color: #555;
}

#plan-description ul li strong {
    color: #2c3e50;
}

#plan-description .btn {
    margin-top: 20px; /* Added margin for button */
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1,
    header ul {
        float: none;
        text-align: center;
    }

    header li {
        display: block;
        padding: 10px 0;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .feature-grid,
    .viewer-thumbnails {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: center;
    }

    .thumbnail {
        width: 120px; /* Adjusted for responsive */
        height: 84px; /* Adjusted for responsive */
    }

    .contact-form-container,
    .contact-info {
        min-width: unset;
        width: 100%;
    }

    .plan-viewer-main {
        max-width: 100%;
    }

    .plan-thumbnail {
        width: 100px; /* Adjusted for responsive */
        height: 70px; /* Adjusted for responsive */
    }

    #plan-description .container {
        max-width: 95%;
    }

    #plan-description h3 {
        font-size: 2em;
    }
}
