/* ROOT */
:root {
    --black:#0a0a0a;
	--white:#ffffff;
    --darker-white:#fbfbfb;
    --darkgray:#1f1f1f;
	--clay:#cb997e;
	--pale:#ddbea9;
	--peach:#ffe8d6;
    --ivory:#fdf7f3;
	--olive:#b7b7a4;
	--sage:#a5a58d;
	--moss:#6b705c;
    --grass:#3E3E19;
    --army:#2E2E09;
    --rainforest:#0E8561;
    --rain:#1067A6;
    --ocean:#363DD0;
}
body {
	font-family:'Roboto', sans-serif;
	background-color:var(--white);
	color:var(--grass);
	margin:0;
	padding:0;
}
/* HEADER */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--white);
	font-size: 1.1rem;
	padding:25px 50px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10);
	z-index: 9999;
	color: var(--grass);
}
.logo {
    text-decoration: none;
	font-weight: bold;
	font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--moss);
    transition: color 0.3s ease;
}
.navigation {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.navigation li {
	display: inline;
	margin-right: 50px;
}
.navigation a {
	text-decoration: none;
	color: var(--moss);
	transition: color 0.3s ease;
}
.logo:hover,
.navigation a:hover {
	color: var(--sage);
}
.navigation i {
	margin-right: 2px;
}
/* FOOTER */
.footer {
    background-color: var(--darker-white);
    padding: 20px;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-content a {
    color: var(--moss);
    text-align: center;
    margin: 20px 50px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-content a:hover {
    color: var(--sage);
}
.legal-info {
    margin-top: 20px;
}
.legal-info p {
    font-size: 0.8rem;
    color: var(--grass);
    margin: 5px 0;
}
/* LANDING */
.hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding: 100px 60px;
    background-color: var(--ivory);
    margin-bottom: 20px;
}
.hero-text {
    width: 50%;
}
.hero-text h1 {
    font-size: 3.2rem;
    color: var(--rainforest);
    margin: 10px auto;
}
.hero-text p {
    font-size: 1.2rem;
    color: var(--grass);
}
.hero-images {
    width: 50%;
    display: flex;
    justify-content: space-between;
}
.hero-images img {
    height: 480px;
    width: 700px;
    margin-left: 40px;
    border-radius: 20px;
    animation: bounce-image 5s infinite;
}
@keyframes bounce-image {
    0%, 50%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    75% {
        transform: translateY(-5px);
    }
}
.scroll-down {
    font-size: 2.2rem;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color:var(--rainforest);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
}
.section-content {
    padding:40px 100px;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.content-container {
    display: flex;
    align-items: center;
}
.image-wrapper,
.text-wrapper {
    flex: 1;
    box-sizing: border-box;
}

.image-wrapper {
    position: relative;
    width: 200px; 
    height: 350px;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.image-wrapper img.active {
    opacity: 1;
}

.text-wrapper {
    padding-left: 10px;
}
.tenant-image,
.landlord-image {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.tenant-image,
.landlord-image,
.text {
    display: none;
}
.tenant-image.active,
.landlord-image.active,
.text.active {
    display: block;
}
.text h2 {
    font-size: 2.5rem;
    color: var(--rainforest);
}
.text p {
    color: var(--grass);
}
.statistic-wrapper {
    display: flex;
    justify-content: center;
    text-align: center;
}

/* statistic animation & flip behavior */
@keyframes slideInFromRight {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

.external-link {
    color: var(--rainforest);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.external-link:hover {
    color: var(--moss);
}

.statistic {
    opacity: 0;
    perspective: 1000px; 
    transform: translateX(100%);
    transition: opacity 0.5s, transform 0.5s;
}

.statistic.animate {
    animation: slideInFromRight 1s ease forwards;
}

/* statistic card styling */
.statistic {
    height: 100%;
    margin: auto 20px;
    background-color: var(--darker-white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.statistic h3 {
    font-size: 2rem;
    color: var(--rainforest);
}
.statistic p {
    color: var(--grass);
}
.infographic-section {
    padding: 20px;
    margin-top: .25rem;
}
.infographic-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.button-container {
    text-align: center;
    margin-bottom: 20px;
    background-color: var(--darker-white);
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    box-shadow:0 2px 4px rgba(0,0,0,0.2);
}
.toggle-button {
    padding: 10px 20px;
    background-color: transparent;
    border:none;
    color: var(--grass);
    border-radius: 10px;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s, color 0.3s;
}
.toggle-button:hover {
    background-color: var(--white);
}

.toggle-button.active {
    background-color: var(--white);
    color: var(--rainforest);
    border: 1px solid var(--darker-white);
    font-weight: bold;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}
.video-container {
    background-color: var(--ivory);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
}
.video-text h2 {
    margin: 0;
    text-align: center;
    color: var(--black);
    font-size: 2.2rem;
    margin-bottom: 5px;
}
.video-text p {
    margin: 0;
    text-align: center;
    color: var(--darkgray);
    margin-bottom: 20px;
}
.demo-video {
    border-radius: 20px;
    overflow: hidden;
}

.centered-content {
    display: flex;
    margin-bottom: .5rem;
    justify-content: center;
}
.text-wrapper {
    flex: 1;
}
.text-button-wrapper {
    display: flex;
    align-items: center;
}
.button-wrapper {
    margin-left: 20px;
}

.explore-button {
    padding: 10px 20px;
    font-size: 1.5rem;
    background-color: var(--rainforest);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.explore-button:hover {
    background-color: #239270;
}
/* PROPERTIES */
.map-container {
	width:90%;
	display:flex;
	flex-direction:row;
	margin: 100px auto 50px;
	border-radius:15px;
	box-shadow:0 6px 12px rgba(0,0,0,0.2);
	overflow:hidden;
}
#map {
    flex: 1;
	height:640px;
}
/* ABOUT */
.team {
    background-color: var(--white);
    padding: 30px 50px;
    border-radius: 15px;
    width: 90%;
    margin: 60px auto 0;
}
.team h2 {
    font-size: 2rem;
    color: var(--rainforest);
    margin-left: 12px;
}
.team p {
    font-size: 1.2rem;
    color: var(--grass);
    margin-left: 12px;
}
.team-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}
.team-member {
    background-color: var(--white);
    margin: 12px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: calc(25% - 40px);
    box-sizing: border-box;
    transition: transform 0.2s ease-in-out;
}
.team-member:hover {
    transform: scale(1.025);
}
.team-member img {
    max-width: 80%;
    display: block;
    margin: 0 auto;
    border-radius: 40px;
}
.team-member h3 {
    font-size: 1.3rem;
    color: var(--rainforest);
    margin-top: 20px;
}
.team-member p {
    font-size: 1rem;
    color: var(--grass);
    margin: 20px 0;
}
.team-member p.role {
    margin-top: -10px;
}
.links {
    display: flex;
    justify-content: start;
    margin-top: 10px;
}
.links a {
    margin: 10px 25px 0 0px;
    color: var(--moss);
    text-decoration: none;
    transition: color 0.3s ease;
}
.links a:hover {
    color: var(--sage);
}
.links a i {
    font-size: 18px;
}
.about-container {
    max-width: 90vw;
    padding: 0 20px;
    margin: 20px auto;
}
.about-content {
    background-color: var(--darker-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
}
.about-content h3 {
    font-size: 2rem;
    color: var(--rainforest)
}
.about-content p {
    color: var(--grass)
}

.mission-text {
    font-size: 1.2rem;
}
.value-props {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}
.value-card img {
    width: 100%;
    border-radius: 10px 10px 0px 0px;
    position: relative;
}

h3.image-caption {
    position: absolute;
    transform: translate(20%, -185%);
    text-align: center;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 2.25rem;
}

.value-card {
    width: calc(30% - 20px);
    margin: 30px;
    padding: 10px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transition: transform 0.2s ease-in-out;
}
.value-card:hover {
    transform: scale(1.025);
}
.value-card p {
    margin: 20px;
}
.grid-title {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--rainforest);
}
.resource-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px;
    background-color: var(--ivory);
}
.resource {
    width: 30%;
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 10px;
    border: 6px solid var(--darker-white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transition: transform 0.2s ease-in-out;
}
.resource:hover {
    transform: scale(1.025);
}
.resource img {
    width: 90%;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
}
.resource h3,
.resource p {
    margin: 20px;
}
.resource h3 {
    color: var(--rainforest);
}
/* RESOURCES */
.resources-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 120px;
}
.housing-plans,
.data-sources {
    padding: 30px 80px;
    background-color: var(--ivory);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.housing-plans h2,
.data-sources h2 {
    text-align: left;
    margin-bottom: 20px;
    color: var(--rainforest);
    font-size: 2rem;
}
.housing-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.housing-card {
    position: relative;
    width: calc(21% - 8px);
    margin-bottom: 20px;
    margin-right: 40px;
}
.housing-card .front {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}
.housing-card .front img {
    width: 100%;
    border-radius: 5px;
}
.housing-card .front h3 {
    text-align: center;
    font-size: 1.5rem;
    padding: 10px;
    margin: 0;
    color: var(--rainforest);
}
.housing-card .front p {
    text-align: left;
    margin: 5px 0;
    color: var(--grass);
}   
.housing-card .back {
    position: absolute;
    top: 0;
    left: -40px;
    width: 100%;
    height: 87.5%;
    padding: 20px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    backface-visibility: hidden;
    transform: rotateY(180deg);
    transform-origin: center;
}
.housing-card .back p {
    text-align: left;
    margin: 5px 0;
    color: var(--grass);
}
.flip-container {
    perspective: 1000px;
}
.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}
.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
}
.front,
.back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.front {
    z-index: 2;
}
.back {
    transform: rotateY(180deg);
    z-index: 1;
}

.data-source-info {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.data-text {
    flex: 1;
    max-width: 55%;
}
.data-image {
    flex: 1;
    text-align: right;
}
.data-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color: var(--white);
    transition: transform 0.2s ease-in-out, background-color 0.3s ease;
}
.data-image img:hover {
    background-color: #fafefe;
    transform: scale(1.05);
}
/* CONTACT */
.contact-container {
    width: 90%;
    height: 85vh;
    margin: 20px auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
	margin-top:100px;
	box-shadow: 0 3px 6px rgba(0,0,0,0.2);
	border-radius: 20px;
}

.contact-form {
    width: 100%;
    padding: 20px;
    background-color: var(--white);
    border-radius: 15px;
}
.contact-form h2 {
    font-size: 2rem;
    color: var(--rainforest);
    margin: 0px;
}

.contact-form p {
    margin-bottom: 20px;
}

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

.contact-form label {
    margin-bottom: 5px;
}

.contact-form input,
.contact-form select {
    margin-bottom: 15px;
    padding: 8px;
}

.contact-form textarea {
    font-family:'Roboto', sans-serif;
    margin-bottom: 15px;
    padding: 15px;
    height: 100px;
    resize: none;
}

.contact-form button {
    margin: 0;
    padding: 15px;
    background-color: var(--rainforest);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: #239270;
}
#popupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
#popupMessage {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--rainforest);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.closePopup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: var(--white);
    font-weight: bold;
}

/* MOBILE DESIGN*/
@media only screen and (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .navigation {
        display: flex;
        flex-direction: row;
        margin-top: 0;
    }
    .about-container {
        max-width: 100%;
    }
    .value-card {
        width: calc(45% - 2px);
        margin: 20px;
        padding: 10px;
    }
    .data-image img {
        margin-left: 20px;
    }
}