@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: rgb(216, 216, 218);
  color: #000;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  height: 60px;
  background-color: rgba(29, 29, 51, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  padding: 0 20px;
  overflow: visible; /* let hamburger & close icon show fully */
}

header nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  /* Remove any negative margin for the header logo */
  margin-left: 0;
  display: flex; /* If you want to keep .logo as a flex container, that’s fine */
  align-items: center;
}

/* The anchor that wraps the image + text */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none; /* remove default underline */
}

.logo-link img {
  height: 40px; /* or match header height */
  width: auto;
  object-fit: contain;
}

.logo-text {
  margin-left: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #eee;
}
.nav-links{
  flex: 1; /* 1 means the item will grow to fill the available space, sharing it equally with other items that also have the flex grow value set*/
  text-align: right;
}
.nav-links ul li{
  list-style: none;
  display: inline-block; /* makes things appear on the same line as other elements. The elements will appear side by side*/
  padding: 8px 12px;
  position: relative;

}

.nav-links ul li a{
  color: #eee;
  text-decoration: none;
  font-size: 13px ;
}

/* Hamburger icon hidden by default (shown via media query) */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #eee;
  cursor: pointer;
}

header a {
    color: #000;
    text-decoration: none;
    font-size: .9em;
    padding: 10px 15px;
}

header a:hover {
    background-color: rgb(88, 88, 90,.7);
    color: #000;
    border-radius: 5px;
}
/* Close icon hidden by default; shown in media query */
.close-icon {
  display: none; /* Only show on mobile */
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}


/* Slide-in nav for mobile/tablet */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    padding-top: 60px;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  .nav-links ul li {
    margin: 10px 0;
  }
  .nav-links ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 1.1rem;
    color: #fff;
  }
  .close-icon {
    display: block; /* Show the X on mobile/tablet */
    position: absolute;
    top: 15px;
    right: 15px;
  }
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Adjust as needed */
  background: url('images/nexxosback11.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Remove padding if you like; the overlay handles spacing now */
  padding: 0;
  
}
/* Hero overlay (left aligned on desktop) */
.hero-overlay {
  position: absolute;
  top: 0; /* or top: 60px if you prefer; but let's keep it consistent */
  left: 2rem; /* offset from left on desktop */
  width: 300px;
  height: 100%;
  background-color: rgba(49, 49, 61, 0.7);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  padding: 1rem;
  z-index: 1;
}
.hero-content {
  max-width: 300px;
  color: #eee;
  text-align: center;
}
.hero-title {
  font-size: 26px;
  line-height: 2em;
  margin-bottom: 60px;
  font-weight: 700;
}
.hero-text {
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
/* On smaller screens, center the overlay horizontally */
@media (max-width: 768px) {
  .hero-overlay {
    top: 60px; /* below nav */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: calc(100vh - 60px);
  }
}

.btn {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #000;
  color: #fff;
}

.btn-primary:hover {
  background-color: rgb(130, 130, 133);
}

.btn-secondary {
  background-color: #000;
  color: #fff;
 /* border: 2px solid #000;*/
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgb(130, 130, 133);
  color: #fff;
}



/* === Housing Section === */
.housing-section {
  /* Adds vertical spacing */
  padding: 60px 20px;
  /* Centers the container horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Optional background color or gradient */
  background-color: #f9f9f9;
  /* If you have a fixed header, ensure margin-top to avoid overlap */

}

.housing-container {
  /* Limit maximum width and center content */
  max-width: 1200px;
  width: 100%;
  display: flex;
  gap: 40px; /* Space between image and text */
  align-items: center;
}

.housing-image {
  flex: 1;
  /* Optional text-align center if you want the image centered in its column */
  /* text-align: center; */
}

.housing-image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures the image fills the container without distortion */
}

.housing-text {
  flex: 1;
  color: #000; /* Adjust text color as needed */
}

.housing-text h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #333;
  line-height: 2.0;
  text-align: center;
}

.housing-text p {
  font-size: 1.0rem;
  line-height: 1.6;
  margin-bottom: 20px;
  margin-top: 50px; /* adjust if header is fixed */
  color: #555;
}

.cta-link {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color:  #0a043f;; /* Link color */
  position: relative;
}

.cta-link:hover {
  text-decoration: underline;
}

/* === THREE CARDS SECTION === */
/* Container for the entire section */
.three-cards-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
  margin-top: 60px;
}

.three-cards-section h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  letter-spacing: 1px;
  color: #333;
  text-transform: uppercase;
}

/* Wrapper for the three cards */
.cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Fixed-Size Card */
.card {
  width: 350px;          /* Fixed width */
  height: 500px;         /* Fixed height */
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;      /* Ensure card corners remain rounded */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Image Container (fixed height) */
.card-img {
  width: 100%;
  height: 250px;         /* Reserve 250px for the image */
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
  background-color: #ccc; /* Fallback background if image fails */
}

/* Image styling: use object-fit: cover to fill the container uniformly */
.card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;       /* Ensures the image covers the container */
  object-position: center; /* Center the image */
}

/* Card Content: use grid layout for consistent distribution */
.card-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: calc(100% - 250px); /* Remaining height after the image area */
  padding: 10px;
  padding-bottom: 40px;      /* Increase to push the button up */
  gap: 10px;
}

/* Title styling */
.card-content h3 {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
  text-transform: uppercase;
}

/* Text paragraph: scrollable if content exceeds available space */
.card-content p {
  margin: 0;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

/* Learn More Button: always in the bottom row, centered */
.learn-more-btn {
  justify-self: center;
  padding: 8px 16px;
  background-color: #0a043f;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  padding-bottom: 10px;
  transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #333;
}



/* Pricing Table Section */
.pricing-table {
  padding: 80px 20px;
  text-align: center;
  background-color: #f4f4f9;
  margin-top: 60px; /* adjust if header is fixed */
}

.pricing-title {
  font-size: 1.8em;
  margin-bottom: 40px;
  letter-spacing: 1px;
  color: #333;
  text-transform: uppercase;
}

.pricing-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensures columns stack on smaller screens */
}

.pricing-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column; /* Allows for vertical alignment */
  justify-content: space-between; /* Push the button to the bottom */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 450px; /* Ensure all cards have the same height */
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.plan-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #444;
}

.price {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #0a043f;
}

.features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows the list to take up available space and push the button down */
  color: black;
}

.features li {
  font-size: 1em;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.features li:last-child {
  border-bottom: none;
}

.btn-select {
  padding: 12px 30px;
  background-color: #0a043f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 20px; /* Add spacing above the button */
}

.btn-select:hover {
  background-color: #0a043f;
}

/* New Divider Styling */
.pricing-divider {
  border-top: 5px solid #eee;
  border-bottom: 5px solid #eee;
  padding: 10px 0;
  margin-bottom: 40px;
  text-align: center;
}

.pricing-divider .divider-title {
  font-size: 1.8em;
  margin: 0;
  color: #333;
}

.pricing-divider p.price {
  font-size: 1.5em;
  font-weight: bold;
  color: #0a043f;
  margin: 5px 0;
}

/* Modified: Remove bullet marker for divider sub bullet */
.pricing-divider .divider-bullets {
  list-style: none;
  margin: 0;
  padding-left: 0;
  color: black;
  font-size: 1em;
}

.pricing-divider .divider-bullets li {
  margin: 0;
  font-size: 1.0em;
}

/* Contact Form Section */


.contactcontainer {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
  background-color: #f4f4f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin-top: 60px; /* adjust if header is fixed */
}

.form {
  width: 100%;
  max-width: 820px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.contact-form {
  background-color: #0a043f;
  position: relative;
}

.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 20%, #777a7a);
  position: absolute;
}

.circle.one {
  width: 130px;
  height: 130px;
  top: 130px;
  right: -40px;
}

.circle.two {
  width: 80px;
  height: 80px;
  top: 10px;
  right: 30px;
}

.contact-form:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: #777a7a;
  transform: rotate(45deg);
  top: 50px;
  left: -13px;
}
.contact-form:after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: #777a7a;
  transform: rotate(45deg);
  bottom: 50px;
  left: -13px;
}

form {
  padding: 2.3rem 2.2rem;
  z-index: 10;
  overflow: hidden;
  position: relative;
}

.title {
  color: #fff;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.input-container {
  position: relative;
  margin: 1rem 0; /*This adds spacing between the rows of inputs*/
}

.input {
  width: 100%;
  outline: none;
  border: 2px solid #fafafa;
  background: none;
  padding: 0.6rem 1.2rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 25px;
  transition: 0.3s;
}

textarea.input {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 22px;
  resize: none; /*prevents the user from resizing the containers when they are on your site*/
  overflow-y: auto; /*creates a scrolling option when the user fills the container*/
}

.input-container label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  padding: 0 0.4rem;
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 400;
  pointer-events: none;
  z-index: 1000;
  transition: 0.5s;
}

.input-container.textarea label {
  top: 1rem;
  transform: translateY(0);
}

.btn {
  padding: 0.6rem 1.3rem;
  background-color: #fff;
  border: 2px solid #fafafa;
  font-size: 0.95rem;
  color: #0a043f;
  line-height: 1;
  border-radius: 25px;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin: 0;
}

.btn:hover {
  background-color: transparent;
  color: #fff;
}

.input-container span { /*This area creates the animation where the input name appears at the top of the input container when you try to input text*/
  position: absolute;
  top: 0;
  left: 25px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  padding: 0 0.4rem;
  color: transparent;
  pointer-events: none;
  z-index: 500;
}

.input-container span:before,
.input-container span:after {
  content: "";
  position: absolute;
  width: 10%;
  opacity: 0;
  transition: 0.3s;
  height: 5px;
  background-color: #757a79;
  top: 50%;
  transform: translateY(-50%);
}

.input-container span:before {
  left: 50%;
}

.input-container span:after {
  right: 50%;
}

.input-container.focus label {
  top: 0;
  transform: translateY(-50%);
  left: 25px;
  font-size: 0.8rem;
}

.input-container.focus span:before,
.input-container.focus span:after {
  width: 50%;
  opacity: 1;
}

.contact-info {
  padding: 2.3rem 2.2rem;
  position: relative;
}

.contact-info .title {
  color: #0a043f;
  text-align: left;
}

.text {
  color: #333;
  margin: 1.5rem 0 2rem 0;
  text-align: left;
  font-size: .9rem;
}

.information {
  display: flex;
  color: #555;
  margin: 0.7rem 0;
  align-items: center;
  font-size: 0.95rem;
}

.icon {
  width: 28px;
  margin-right: 0.7rem;
}

.social-media {
  padding: 2rem 0 0 0;
}

.social-media p {
  color: #333;
}

.social-icons {
  display: flex;
  margin-top: 0.5rem;
}

.social-icons a {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: linear-gradient(45deg, #0a043f, #0a043f);
  color: #fff;
  text-align: center;
  line-height: 35px;
  margin-right: 0.5rem;
  transition: 0.3s;
}

.social-icons a:hover {
  transform: scale(1.05);
}

.contact-info:before {
  content: "";
  position: absolute;
  width: 110px;
  height: 100px;
  border: 22px solid #464a6e;
  border-radius: 50%;
  bottom: -77px;
  right: 50px;
  opacity: 0.3;
}

.big-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #0a043f, #0a043f);
  bottom: 50%;
  right: 50%;
  transform: translate(-40%, 38%);
}

.big-circle:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  background-color: #fafafa;
  border-radius: 50%;
  top: calc(50% - 180px);
  left: calc(50% - 180px);
}

.square {
  position: absolute;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(181%, 11%);
  opacity: 0.2;
}

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

  .contact-info:before {
    bottom: initial;
    top: -75px;
    right: 65px;
    transform: scale(0.95);
  }

  .contact-form:before {
    top: -13px;
    left: initial;
    right: 70px;
  }

  .square {
    transform: translate(140%, 43%);
    height: 350px;
  }

  .big-circle {
    bottom: 75%;
    transform: scale(0.9) translate(-40%, 30%);
    right: 50%;
  }

  .text {
    margin: 1rem 0 1.5rem 0;
  }

  .social-media {
    padding: 1.5rem 0 0 0;
  }
}

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

  .contact-info:before {
    display: none;
  }

  .square,
  .big-circle {
    display: none;
  }

  form,
  .contact-info {
    padding: 1.7rem 1.6rem;
  }

  .text,
  .information,
  .social-media p {
    font-size: 0.8rem;
  }

  .title {
    font-size: 1.15rem;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .icon {
    width: 23px;
  }

  .input {
    padding: 0.45rem 1.2rem;
  }

  .btn {
    padding: 0.45rem 1.2rem;
  }
}

/* FOOTER */
.footer {
  background-color: #000; /* Black background */
  color: #fff;            /* White text */
  padding: 20px 0;        /* Adjust top/bottom spacing */
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Footer logo container */
.footer .logo {
  display: flex;
  align-items: center;
  /* Remove negative margin */
  margin-left: -30px;
}

/* The anchor that wraps the logo image + text */
.footer .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none; /* No underline on link */
}

/* Logo image: set a consistent height */
.footer .logo-link img {
  height: 40px;    /* Keep consistent with header or adjust as desired */
  width: auto;
  object-fit: contain;
}

/* Logo text next to the image */
.footer .logo-text {
  margin-left: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #eee;
}

/* Center column: policy links + text */
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;            /* Space between links */
  text-align: center;
}

/* Policy link styling */
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #ccc;
}

/* Small text for the All Rights Reserved line */
.footer-links p {
  font-size: 0.8rem;
  margin: 0;
}

/* Right column: social icons */
.footer-social {
  display: flex;
  gap: 15px; /* Space between icons */
}

/* Social icon links */
.footer-social a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.footer-social a:hover {
  color: #ccc;
}

/* Responsive adjustments if needed */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}


@media (max-width: 768px) {
  .about-container, .contact-container {
    flex-direction: column;
    text-align: center;
  }
  .about-text, .contact-info, .contact-form {
    flex: none;
  }
  .nav-links ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* ----- Navigation: Hamburger menu styling ----- */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5em;
  color: #eee;
}

/* For screens below 768px, hide the default nav and show the hamburger */
/* --- Responsive Styles --- */
@media (max-width: 768px) {
  /* Slide-in Navigation */
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    padding-top: 60px;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links ul {
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  .nav-links ul li {
    margin: 10px 0;
  }
  .nav-links ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
  }
  .close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
  }

  .hero-overlay {
    width: 90%;
    margin-left: 5%;
  }
  .hero-content {
    max-width: 95%;
  }

  /* Housing sections: stack image/text */
  .housing-container {
    flex-direction: column;
    gap: 20px;
  }
  /* Center Hero Overlay */
  .hero-overlay {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    margin-left: 0;
  }
  .housing-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-text {
    font-size: 1.6rem;
  }
  .btn {
    font-size: 1.0rem;
    padding: 0.5rem 1rem;
  }
}

/* ----- Housing Section: Stack columns on smaller screens ----- */
@media (max-width: 768px) {
  .housing-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }
  .housing-text h2,
  .housing-text p {
    text-align: left;
  }
  .card-content p{
    text-align: left;
  }
}

/* ----- Three Cards Section: Adjust layout for mobile ----- */
@media (max-width: 768px) {
  .cards-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
    margin-bottom: 20px;
  }
}

/* ----- Pricing Table Section: Stack cards vertically ----- */
@media (max-width: 768px) {
  .pricing-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ----- Footer: Adjust layout for mobile ----- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}


/* Very small screens <= 480px */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-text {
    font-size: 1.4rem;
  }
  .btn {
    font-size: 1.0rem;
    padding: 0.5rem 1rem;
  }
}
