/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

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

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   PAGE HEADER (for non-home pages)
   =================================== */

.page-header {
    margin-top: 80px;
    padding: 32px 0 24px;
    background-color: var(--bg-light);
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Make navbar solid on non-home pages */
body:not(:has(.hero)) .navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

body:not(:has(.hero)) .navbar .logo,
body:not(:has(.hero)) .navbar .nav-links a {
    color: var(--primary-color);
}

body:not(:has(.hero)) .navbar .mobile-menu-toggle span {
    background-color: var(--primary-color);
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-bottom: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 80px;
    gap: 40px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.logo-image {
    height: 10px;
    width: auto;
    display: block;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
}

.nav-links > li {
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    display: block;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

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

.nav-links > li > a:hover {
    color: var(--accent-color);
}

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

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    padding: 12px 0;
    margin-top: 8px;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    color: var(--text-dark);
    padding: 12px 24px;
    font-size: 15px;
    white-space: nowrap;
    transition: var(--transition);
    background: none;
}

.dropdown-menu a::after {
    display: none;
}

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

/* Dropdown indicator */
.has-dropdown > a::before {
    content: '';
    display: none;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: var(--transition);
}

.has-dropdown:hover > a::before {
    transform: rotate(180deg);
}

/* Sign In Button */
.sign-in-link {
    background-color: #c8a84e;
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 0;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.sign-in-link:hover {
    background-color: #b8963e;
    color: white;
}

.navbar.scrolled .sign-in-link {
    background-color: #c8a84e;
    color: white;
}

.navbar.scrolled .sign-in-link:hover {
    background-color: #b8963e;
    color: white;
}

body:not(:has(.hero)) .navbar .sign-in-link {
    background-color: #c8a84e;
    color: white;
}

body:not(:has(.hero)) .navbar .sign-in-link:hover {
    background-color: #b8963e;
    color: white;
}

/* User Avatar Menu */
.user-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #c8a84e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 90, 138, 0.3);
}

.avatar-initials {
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.user-dropdown-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.user-dropdown-type {
    font-size: 13px;
    color: #4A90E2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.user-dropdown-item.signout-link {
    color: var(--accent-color);
    text-decoration: underline;
    justify-content: center;
}

.user-dropdown-item.signout-link:hover {
    color: #2980b9;
    background-color: transparent;
}

/* Admin Link */
.admin-link {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    padding-right: 16px;
}

.admin-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: var(--transition);
}

.has-dropdown:hover .admin-link::after {
    transform: translateY(-50%) rotate(180deg);
}

.admin-link:hover {
    color: var(--accent-color);
}

.navbar.scrolled .admin-link {
    color: var(--text-dark);
}

.navbar.scrolled .admin-link:hover {
    color: var(--accent-color);
}

body:not(:has(.hero)) .navbar .admin-link {
    color: var(--primary-color);
}

body:not(:has(.hero)) .navbar .admin-link:hover {
    color: var(--accent-color);
}

/* Sign In Modal */
.signin-modal {
    position: fixed;
    top: 80px;
    right: 24px;
    background-color: var(--white);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    width: 360px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.signin-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.signin-modal-content {
    padding: 32px;
}

.signin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.signin-modal-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.signin-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.signin-modal-close:hover {
    color: var(--primary-color);
}

.signin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signin-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signin-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.signin-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.signin-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.signin-form .submit-button {
    margin-top: 8px;
}

.signin-modal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e1e8ed;
}

.modal-link {
    color: var(--accent-color);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.modal-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Modal overlay backdrop (optional - for click outside to close) */
.signin-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.signin-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

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

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

.navbar.scrolled .mobile-menu-toggle span {
    background-color: var(--primary-color);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 75px);
    max-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 80px 24px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: #2980b9;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Optimize for 16:9 aspect ratio (1920x1080) on wider screens */
@media (min-aspect-ratio: 16/9) {
    .hero-image img {
        width: 100%;
        height: auto;
        min-height: 100%;
    }
}

/* Optimize for taller screens */
@media (max-aspect-ratio: 16/9) {
    .hero-image img {
        width: auto;
        height: 100%;
        min-width: 100%;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.hero-slide.slide-out {
    opacity: 0;
    transform: translateX(-100%);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* ===================================
   OUR PROJECTS SECTION
   =================================== */

.our-projects {
    background-color: var(--white);
    padding: 100px 0;
}

.our-projects .section-header {
    margin-bottom: 60px;
    text-align: left;
    max-width: none;
    margin-left: 0;
}

.our-projects .section-title {
    font-size: 29px;
}

.projects-showcase {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 60px;
    row-gap: 40px;
}

.project-showcase-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 300px;
}

.project-showcase-image {
    width: 300px;
    height: 300px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.project-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-showcase-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .projects-showcase {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .project-showcase-item {
        max-width: 400px;
    }
}

/* ===================================
   SECTION STYLES
   =================================== */

section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image-placeholder {
    background-color: var(--bg-light);
    border-radius: 12px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 48px 32px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

#leading-with-purpose .service-card {
    border-radius: 0;
}

.service-icon-placeholder {
    margin-bottom: 24px;
}

.placeholder-icon {
    font-size: 48px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Full Width Image */
.full-width-image {
    width: 100%;
    line-height: 0;
}

.full-width-image img {
    width: 100%;
    display: block;
}

/* ===================================
   PROPERTY LISTINGS SECTION
   =================================== */

.property-listings {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.listing-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-card {
    background-color: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.listing-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #e9ecef;
    color: #999;
}

.listing-card-placeholder span {
    font-size: 13px;
    font-weight: 500;
}

.listing-card-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-card-info {
    padding: 24px;
}

.listing-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.listing-card-location {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.listing-card-price {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background-color: #c8a84e;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 1;
}

.listing-card-details {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.listing-card-details span {
    white-space: nowrap;
}

.no-listings {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    padding: 40px 0;
    grid-column: 1 / -1;
}

@media (max-width: 992px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects {
    background-color: var(--white);
    padding: 80px 0;
}

/* Projects page specific styling */
body:not(:has(.hero)) .projects {
    padding: 40px 0 80px;
}

.container-full {
    max-width: 100%;
    padding: 0;
}

.projects .section-header {
    padding: 0 40px;
    margin-bottom: 60px;
}

.projects-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    min-height: 600px;
    margin-top: 70px;
}

/* Left side: Scrollable projects list */
.projects-list {
    height: 700px;
    overflow-y: auto;
    padding: 0 40px 40px 40px;
    border-right: 1px solid #e1e8ed;
}

.projects-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.projects-list {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.project-item {
    position: relative;
    display: flex;
    gap: 0;
    padding: 0;
    margin-bottom: 24px;
    background-color: var(--white);
    border-radius: 0;
    border: 2px solid #e1e8ed;
    transition: var(--transition);
    cursor: pointer;
    min-height: 162px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.project-item:hover,
.project-item.active {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.project-item.active {
    background-color: #f0f8ff;
}

.project-letter {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    z-index: 10;
}

.project-item .project-image-placeholder {
    flex-shrink: 0;
    width: 216px;
    min-height: 162px;
    background-color: var(--bg-light);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    order: 1;
}

.project-item .project-image-placeholder .placeholder-text {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

.project-details {
    flex: 1;
    min-width: 0;
    padding: 24px;
    order: 2;
}

.project-details h3 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-location {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.project-type {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.project-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Right side: Map */
.projects-map {
    position: sticky;
    top: 80px;
    height: 700px;
    padding: 0 40px;
}

#map-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Mapbox marker styles */
.mapbox-marker {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.mapbox-marker:hover,
.mapbox-marker.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
    z-index: 10;
}

.mapbox-marker.active {
    border-color: #ffd700;
}

/* ===================================
   INSIGHTS/BLOG SECTION
   =================================== */

.insights-content {
    background-color: var(--white);
    padding: 60px 0 120px;
}

.insights-layout {
    display: grid !important;
    grid-template-columns: 300px 1fr !important;
    gap: 60px;
    align-items: start;
    background-color: #f0f0f0;
    padding: 20px;
}

/* Blog List Sidebar */
.blog-list {
    position: sticky;
    top: 100px;
    height: fit-content;
    border-right: 3px solid #3498db;
    padding-right: 40px;
    background-color: #fff3cd;
    padding: 20px;
}

.blog-list-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
}

.blog-list-items {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.blog-list-item {
    padding: 16px;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.blog-list-item:hover {
    border-left-color: var(--accent-color);
    background-color: var(--bg-light);
}

.blog-list-item.active {
    border-left-color: var(--accent-color);
    background-color: #f0f8ff;
}

.blog-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-list-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
}

/* Blog Content */
.blog-content {
    max-width: 800px;
    background-color: #d4edda;
    padding: 20px;
}

.blog-post {
    background-color: var(--white);
    display: none !important;
}

.blog-post.active {
    display: block !important;
}

.blog-post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.blog-category {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-date {
    font-size: 14px;
    color: var(--text-light);
}

.blog-post-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-post-author {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.blog-post-image {
    margin-bottom: 40px;
}

.blog-post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-content p {
    margin-bottom: 24px;
}

.blog-post-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-post-content ul {
    margin: 24px 0;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 12px;
    color: var(--text-light);
}

.blog-post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e1e8ed;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Responsive */
@media (max-width: 600px) {
    .insights-layout {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .blog-list {
        position: relative;
        top: 0;
        border-right: none;
        padding-right: 0;
    }

    .blog-post-title {
        font-size: 32px;
    }

    .blog-post-content {
        font-size: 16px;
    }
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details p {
    font-size: 16px;
    margin-bottom: 12px;
}

.contact-details strong {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.submit-button {
    padding: 16px 40px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.submit-button:hover {
    background-color: #2980b9;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===================================
   ANIMATIONS
   =================================== */

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN - SMALL DESKTOP
   =================================== */

@media (max-width: 1024px) {
    .project-item .project-image-placeholder {
        width: 160px;
        min-height: 140px;
    }

    .project-details {
        padding: 16px;
    }

    .project-details h3 {
        font-size: 17px;
    }

    .project-location {
        font-size: 13px;
    }

    .project-type {
        font-size: 12px;
    }
}

/* ===================================
   RESPONSIVE DESIGN - TABLET
   =================================== */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        padding: 16px 0;
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-links a::after {
        display: none;
    }

    /* Dropdown in mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
        margin-top: 8px;
        padding: 0;
    }

    .dropdown-menu a {
        padding: 10px 16px;
    }

    .has-dropdown > a::before {
        display: none;
    }

    /* Sign In on mobile */
    .sign-in-link {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .projects-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-list {
        height: auto;
        max-height: 500px;
        border-right: none;
        border-bottom: 1px solid #e1e8ed;
        padding: 0 24px 24px 24px;
    }

    .projects-map {
        position: relative;
        top: 0;
        height: 500px;
        padding: 0 24px;
    }

    .project-item {
        flex-direction: column;
        min-height: auto;
    }

    .project-item .project-image-placeholder {
        width: 100%;
        height: 200px;
        min-height: auto;
    }

    .project-details {
        padding: 16px;
    }

    .project-details h3 {
        font-size: 18px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    section {
        padding: 80px 0;
    }

    .hero-content {
        padding: 60px 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-text h3 {
        font-size: 28px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .project-info {
        padding: 24px;
    }
}
