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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0a4b90;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 20px;
    font-weight: bold;
}

.logo .logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

nav .logo-container img {
    max-height: 50px;
    display: block;
    margin-right: 10px;
}

nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
    animation: fadeIn 1s ease-out;
}

nav ul li a:hover {
    color: #FFD700;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0056b3;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 180px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

nav ul li:hover > .dropdown {
    display: block;
}

.dropdown a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    font-size: 16px;
    transition: background-color 0.3s;
}

.dropdown a:hover {
    background-color: #4a61c0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

/* Hero Video */
#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7; /* Reduced opacity for the video */
}

/* Black overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1, .hero p {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    font-weight: bold;
    z-index: 2;
}

.hero p {
    top: 50%;
    font-size: 18px;
    
}


/* Adjusting fadeIn and slideUp animations for smoother visibility */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* About Us Section */
#about-us {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    color: #333;
}

.about-us-container {
    max-width: 800px;
    margin: 0 auto;
}

#about-us h2 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

#about-us h2 span {
    color: #0a4b90;
}

#about-us h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color:#0a4b90 ;
    margin: 10px auto 0;
}

#about-us p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

#about-us h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

#about-us p strong {
    font-weight: bold;
    color: #0a4b90; /* Blue highlight */
}
/* Responsive Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 10px;
    position: relative;
}

nav ul li .dropdown {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    flex-direction: column;
}

nav ul li:hover .dropdown {
    display: flex;
}

/* Hero Section */
.hero {
    text-align: center;
    position: relative;
}

#hero-video {
    width: 100%;
    height: auto;
}
.photo-gallery h2 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.photo-gallery h2 span {
    color: #0a4b90;
}

.photo-gallery h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color:#0a4b90 ;
    margin: 10px auto 0;
}

/* Responsive Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 300px;
    max-width: 300px;
}

.cost-plus-model {
    padding: 2rem 1rem;
    max-width: 100%;
    overflow-x: auto;
}


.cost-plus-model h2 span {
    color: #0056b3;
}

.cost-plus-model table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    max-width: 1200px;
}

.cost-plus-model th,
.cost-plus-model td {
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: left;
}

.cost-plus-model th {
    background-color: #0056b3;
    color: white;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .cost-plus-model {
        padding: 1rem 0.5rem;
    }
    
    .cost-plus-model table {
        font-size: 0.9rem;
    }
    
    .cost-plus-model th,
    .cost-plus-model td {
        padding: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .cost-plus-model table {
        font-size: 0.8rem;
    }
    
    .cost-plus-model th,
    .cost-plus-model td {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .expertise-container, .gallery {
        flex-direction: column;
        align-items: center;
    }
}

/* Expertise Section */
.expertise-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.expertise-item {
    flex: 1 1 200px;
    text-align: center;
}
.expertise-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
}

.expertise-section h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.expertise-section h2 span {
    color: #0a4b90;
    text-decoration: underline;
}

.expertise-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.expertise-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.expertise-item img {
    width: 75px;
    height: 60px;
    margin-bottom: 10px;
}

.expertise-item h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Featured Properties */
.featured {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    animation: fadeIn 1s ease-out;
}

.featured h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.property {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.property h3 {
    font-size: 20px;
    margin-top: 15px;
}

.property p {
    font-size: 16px;
    color: #888;
    margin: 10px 0;
}

.property a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.property a:hover {
    color: #FFD700;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h2, .footer-section h3 {
    color: #115eb0;
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-section p, .footer-section ul {
    color: #ccc;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #1e77d6;
}

.footer-address {
    line-height: 1.6;
}

.footer-section .add-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a img + span {
    color: white;
    text-decoration: none;
}

.footer-logo a {
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-family: sans-serif;
}

/* Table Container Styling */
.table-container {
    max-width: 750px;
    margin: 60px auto; /* Adds vertical and horizontal centering */
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Table Styling */
table {
    width: calc(100% - 80px); /* Adds horizontal spacing */
    margin: 20px 20px 20px 40px; /* Adjusts top, right, bottom, and left margins */
    border-collapse: separate;
    border-spacing: 0;
    font-size: 16px;
    text-align: left;
}

h2 {
    color: #0a4b90;
}

th, td {
    padding: 12px 15px;
    border-right: 1px solid #ddd; /* Vertical lines between cells */
}

th {
    background-color: #0056b3;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

td {
    border-bottom: 1px solid #ddd;
}

/* Remove right border from last cell in each row */
tr td:last-child {
    border-right: none;
}

table thead th:first-child {
    border-top-left-radius: 10px;
}

table thead th:last-child {
    border-top-right-radius: 10px;
}

table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}
@media (max-width: 1024px) {
    .footer-container {
        padding: 20px;
        gap: 30px;
    }

    .expertise-container {
        gap: 20px;
    }

    .about-us-container {
        padding: 0 20px;
    }

    nav ul li a {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 10px;
    }

    .logo a {
        font-size: 18px;
    }

    .logo .logo-img {
        width: 30px;
        height: 30px;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 50vh;
    }

    #hero-video {
        height: 50vh;
    }

    /* About Section */
    #about-us h2 {
        font-size: 28px;
    }

    #about-us p {
        font-size: 14px;
    }

    /* Expertise Section */
    .expertise-section h2 {
        font-size: 28px;
    }

    .expertise-item {
        padding: 15px;
    }

    /* Table */
    .table-container {
        margin: 30px 10px;
        padding: 10px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }

    /* Footer */
    .footer-section {
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .hero h1 {
        font-size: 20px;
        width: 90%;
    }

    .hero p {
        font-size: 14px;
        width: 90%;
    }

    /* About */
    #about-us {
        padding: 30px 15px;
    }

    #about-us h2 {
        font-size: 24px;
    }

    /* Expertise */
    .expertise-item {
        flex: 1 1 100%;
    }

    .expertise-item img {
        width: 50px;
        height: 40px;
    }

    /* Footer */
    .footer-section {
        flex: 1 1 100%;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .footer-logo a {
        font-size: 16px;
    }

    /* Gallery */
    .gallery-item {
        height: 200px;
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    nav, .hero video, footer {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    .about-us-container, .expertise-section, .cost-plus-model {
        page-break-inside: avoid;
    }
}