/* Fallback for mobile viewport units */
:root {
  --vh: 1vh; /* Will be overwritten by JS */
}

/* Global reset */
html, body {
  margin: 0;
  padding: 0;
  height: calc(var(--vh) * 100);
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content wrapper */
.index-content-wrapper {
  flex: -1; 
}

.index-content-wrapper p {
  all: unset;
  display: block;
  margin: 0;
  padding: 0;
  line-height: normal;
}

/* ============================
   WRAPPERS — unified, responsive
   ============================ */
#main-wrapper,
#about-wrapper,
#contact-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(var(--vh, 1vh) * 100 - 366px);
  height: auto; /* allows content to shrink naturally */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  transition: opacity 0.3s ease;
}

/* Home is visible by default */
#main-wrapper {
  visibility: visible;
  opacity: 1;
}

/* Active wrappers participate in layout and are visible */
#main-wrapper.active,
#about-wrapper.active,
#contact-wrapper.active {
  visibility: visible;
  opacity: 1;
  position: relative;
}

/* Inactive wrappers removed from flow */
#about-wrapper:not(.active),
#contact-wrapper:not(.active) {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================
   BACKGROUND IMAGES
   ============================ */
.main-wrapper {
  background-image: url('../images/base/background.png');
}

.about-wrapper {
  background-image: url('../images/base/analytics.png');
}

.contact-wrapper {
  background-image: url('../images/base/contact.png');
}

/* ============================
   CONTAINERS
   ============================ */
.main-container,
.about-container,
.contact-container {
  background-color: rgba(117, 102, 72, 0.85);
  color: #F5F5DC;
  border-radius: 20px;
  padding: 30px 35px 0px 35px;
  width: 100%;       
  max-width: 850px;   
  margin: 20px;
}

.about-wrapper .about-subtitle {
  font-size: 28px;
  padding-bottom: 20px;
}

.contact-wrapper .contact-subtitle {
  font-size: 28px;
  padding-bottom: 10px;
}

.main-wrapper .main-content {
  font-size: 22px;
}

.main-wrapper .main-content,
.about-wrapper .about-content,
.contact-wrapper .contact-content {
  padding-bottom: 35px;
  line-height: normal;
}

.about-wrapper .about-content {
	font-size: 18px;
}

.contact-wrapper .contact-info {
  padding-bottom: 10px;
}

.contact-style {
  text-decoration: underline;
  color: inherit;
  font-weight: normal;
  cursor: text;
}

.contact-style:hover {
  color: #c78738;
  text-decoration: underline;
}

.contact-wrapper .linkedin-button {
  margin: 20px 0 30px 0;
  width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.linkedin-logo {
  width: 70px;
  height: auto;
  margin-right: 10px;
}

.linkedin-button:hover {
  background-color: #F5F5DC;
  border: 1px solid #9e491e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.linkedin-button a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #F5F5DC;
}

.linkedin-button a:hover {
  color: #9E491E;  
}

/* Mobile padding for containers */
@media (max-width: 600px) {
  .main-container,
  .about-container,
  .contact-container {
    width: auto;          /* allow it to shrink */
    margin-left: 15px;
    margin-right: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}


