body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    background-color: #98c7f5; /* #98c7f5 */
    color: #fff;
    padding: 10px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between; /* Space between logo and nav */
    align-items: center;
}

.logo {
    content: url('images/logo.png');
    height: 50px;
    margin-left: 5%;
}

.hero {
    display: flex;
    justify-content: space-around;
    margin-top: 20%;
    margin-bottom: 20%;
    
}

main {
    padding: 40px;
    margin-top: 40px;
}

/* Pricing plans - pricing.html */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px; /* Adjust gap between items */
    padding: 20px; /* Adjust padding */
    margin-top: 20px;
}

.real-estate-pricing {
    grid-column: span 2; /* Span 2 columns in the grid */
}

.real-estate-content {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    gap: 20px; /* Space between items */
    align-items: center; /* Center align items */
}

.plan, .real-estate-pricing {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Distribute space between content */
    height: auto; /* Adjust height to fit content */
}

.plan:hover, .real-estate-pricing:hover {
    transform: translateY(-10px);
}

.real-estate-pricing h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.real-estate-pricing table {
    width: 100%; /* Adjust width to fit the container */
    border-collapse: collapse;
}

.real-estate-pricing th, .real-estate-pricing td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 1em;
    color: #666;
}

.real-estate-pricing table th {
    background-color: #f5f5f5;
    color: #333;
    text-align: left;
}

.real-estate-pricing td {
    text-align: left;
}

.real-estate-pricing tr:last-child td {
    border-bottom: none;
}

.plan ul {
    list-style-type: none; /* Remove the default bullet points */
    padding-left: 0; /* Remove extra padding */
    text-align: center; /* Center the text */
    margin: 0; /* Remove margin */
}

.plan ul li {
    margin-bottom: 10px; /* Space between each list item */
    font-size: 1em;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center; /* Center items horizontally */
}

.plan ul li::before {
    content: "•"; /* Custom bullet point */
    color: #666;
    margin-right: 8px; /* Space between bullet and text */
    font-size: 1.2em; /* Slightly larger bullet size */
}

.plan:hover {
    transform: translateY(-10px);
}

.plan h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #333;
}

.plan p {
    font-size: 1.2em;
    color: #666;
}
/* Pricing plans END*/

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/DJI_0056.JPG');
    background-position: center; /* Center the background image */
    background-size: cover; /* Ensure the image covers the entire area */
    background-attachment: fixed; /* Keep the image fixed when scrolling */
    opacity: 0.2; /* Adjust opacity if needed */
    z-index: -1; /* Ensure it's behind the content */
}

nav {
    margin-left: 20px; /* Adjust this value for a slight left shift */
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 40px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
}

.thumbnail {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 10px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.fullscreen img {
    max-width: 90%;
    max-height: 90%;
}

.fullscreen, .fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.fullscreen img, .fullscreen-video video {
    max-width: 90%;
    max-height: 90%;
}

/* Contact form styling */
#contact {
    background: #fff; /* White background for contrast */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 20px;
    max-width: 600px;
    margin: 0 auto; /* Center the form */
    text-align: center;
}

#contact h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form elements */
}

label {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 5px;
    text-align: left; /* Align label text to the left */
}

input[type="text"], input[type="email"], textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

textarea {
    resize: vertical; /* Allow vertical resizing only */
}

button[type="submit"] {
    background-color: #98c7f5; /* Matching the header/footer color */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #7da4d3; /* Slightly darker on hover */
}

#popupMessage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#popupMessage button {
    margin-top: 10px;
    background-color: #98c7f5;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

#popupMessage button:hover {
    background-color: #7da4d3;
}
/* Contact form styling END*/

footer {
    background-color: #98c7f5; /* Dark Blue */
    color: #fff;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between; /* Distribute space between social media links and text */
    align-items: center;
}

footer .social-media {
    margin-left: 10px;
}

footer .social-media a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

footer .social-media a:hover {
    text-decoration: underline;
}

footer p {
    margin-right: 100px;
}

/* Breakpoints */
/* iPad Air */
@media (max-width: 992px) {
    header {
        background-color: #98c7f5;
        color: #fff;
        padding: 5px 10px; /* Reduced padding for a smaller header height */
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        grid-column: 1; /* Place logo in the first column */
        height: 40px; /* Ensure logo fits within header height */
        overflow: hidden; /* Hide overflow if logo is too large */
    }

    nav {
        margin-left: 0px;
        margin-right: 40px;
        display: flex;
        align-items: center;
}

    nav ul {
        display: grid; /* Use grid layout for list items */
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        padding: 0;
        margin: 0;
        list-style: none;
        height: 100%; /* Fill the height of the nav */
        gap: 5px; /* Space between columns */
    }

    nav ul li {
        margin: 0; /* Remove margin to fit within header height */
        margin-left: 50px;
    }

    nav ul li a {
        color: #fff;
        text-decoration: none;
        display: block;
        padding: 0 5px; /* Add some padding for better click area */
        line-height: 20px; /* Center text vertically within header height */
    }

    .hero {
        padding: 40px 10px;
        flex-direction: column;
        align-items: center;
    }

    main {
        padding: 40px;
        margin-top: 60px;
    }

    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 0px 0px;
        margin-top: 0px;
    }

    .thumbnail {
        width: 50%;
        height: 50%;
    }

    footer {
        padding: 0;
    }
}

/* iPads and tablets 768px */
@media (max-width: 768px) {
    header {
        background-color: #98c7f5;
        color: #fff;
        padding: 5px 10px; /* Reduced padding for a smaller header height */
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        grid-column: 1; /* Place logo in the first column */
        height: 40px; /* Ensure logo fits within header height */
        overflow: hidden; /* Hide overflow if logo is too large */
    }

    nav {
        margin-left: 0px;
        margin-right: 40px;
        display: flex;
        align-items: center;
}

    nav ul {
        display: grid; /* Use grid layout for list items */
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        padding: 0;
        margin: 0;
        list-style: none;
        height: 100%; /* Fill the height of the nav */
        gap: 5px; /* Space between columns */
    }

    nav ul li {
        margin: 0; /* Remove margin to fit within header height */
        margin-left: 50px;
    }

    nav ul li a {
        color: #fff;
        text-decoration: none;
        display: block;
        padding: 0 5px; /* Add some padding for better click area */
        line-height: 20px; /* Center text vertically within header height */
    }

    .hero {
        padding: 40px 10px;
        flex-direction: column;
        align-items: center;
    }

    main {
        padding: 40px;
        margin-top: 60px;
    }

    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 0px 0px;
        margin-top: 0px;
    }

    .thumbnail {
        width: 50%;
        height: 50%;
    }

    .fullscreen-video {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.9);
        z-index: 1000;
    }
    
    .fullscreen-video video {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }    

    footer {
        padding: 0;
    }

    /* Contact form styling */
    #contact {
        padding: 15px;
    }

    button[type="submit"] {
        font-size: 1em;
        padding: 8px 16px;
    }
    /* Contact form styling END */
}


/* Mobile Devices 480px */
@media (max-width: 480px) {
    header {
        background-color: #98c7f5;
        color: #fff;
        padding: 5px 10px; /* Reduced padding for a smaller header height */
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        content: url('images/logo-mobile.png');
        grid-column: 1;
        overflow: hidden; 
        height: 40px; 
        width: 100px; /* Ensure the logo scales properly */
    }

    nav {
        margin-left: 0px;
        margin-right: 40px;
        display: flex;
        align-items: center;
}

    nav ul {
        display: grid; /* Use grid layout for list items */
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        padding: 0;
        margin: 0;
        list-style: none;
        height: 100%; /* Fill the height of the nav */
        gap: 5px; /* Space between columns */
    }

    nav ul li {
        margin: 0; /* Remove margin to fit within header height */
        margin-left: 50px;
    }

    nav ul li a {
        color: #fff;
        text-decoration: none;
        display: block;
        padding: 0 5px; /* Add some padding for better click area */
        line-height: 20px; /* Center text vertically within header height */
    }

    .hero {
        padding: 40px 10px;
        flex-direction: column;
        align-items: center;
    }

    main {
        padding: 40px;
        margin-top: 60px;
    }

    .pricing-plans {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin-top: 0;
    }

    .pricing-plan {
        width: 100%;
        max-width: 400px; /* Adjust as needed */
        margin-bottom: 10px; /* Space between plans */
    }

    .thumbnail {
        width: 50%;
        height: 50%;
    }

    footer {
        padding: 0;
    }

    footer p {
        margin-right: 5px;
    }

    /* Contact form styling */
    #contact {
        padding: 10px;
    }

    button[type="submit"] {
        font-size: 0.9em;
        padding: 6px 12px;
    }
    /* Contact form styling END */
}
