/* Main content container styles */
.content-container {
  padding-left: 50px;
  padding-right: 50px;
}

body {
  margin: 0;
  padding-top: 70px;
  font-family: sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #F0F8FF;  /* Ice blue background */
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

/* New layout styles */
.menu-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.login-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  cursor: pointer;
  transition: opacity 1s ease;
}



.login-icon.authenticated {
  /* Green icon for authenticated users */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.login-icon.authenticated svg {
  fill: #00FFB8; /* Digital green from the theme */
}

.logo {
  height: 48px;
  padding: 2px;
}

.hamburger {
  width: 40px;
  height: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hamburger div {
  width: 100%;
  height: 5px;
  background-color: #0172BF;  /* Primary blue for branding */
  border-radius: 2px;
  transition: all 1s ease;
}

/* Desktop menu styles */
.menu {
  position: absolute;
  top: 60px;
  left: 0;
  background-color: #F0F8FF;  /* Ice blue background */
  min-width: 160px;
  max-height: 35vh;
  width: 20vw;
  display: none;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  z-index: 1001;
}

.menu.visible {
  display: block;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu ul li {
  margin: 8px 0;
}

.menu ul li:first-child {
  margin-top: 0;
}

.menu ul li:last-child {
  margin-bottom: 0;
}

.menu ul li a {
  text-decoration: none;
  color: #2D3748;  /* Charcoal text */
  font-size: 16px;
  padding: 10px 15px;
  display: block;
  border-radius: 8px;
  transition: background-color 0.75s ease;
}

.menu ul li a:hover {
  background-color: #B3E5FF;  /* Light blue hover */
}

footer {
  margin-top: 100px;
  text-align: center;
  padding: 20px;
  background: #F0F8FF;  /* Ice blue background */
  width: 100%;
  box-sizing: border-box;
}

/* Hamburger animation */
.hamburger.active div:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  body {
    width: 100%;
    overflow-x: hidden;
  }
  
  .menu {
    position: fixed !important;
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    top: 60px !important;
    border-radius: 0 !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transform: translateX(0) !important;
    -webkit-overflow-scrolling: touch;
  }

  .menu ul {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .menu ul li {
    margin: 0 !important;
    width: 100% !important;
  }

  .menu ul li a {
    font-size: 18px !important;
    padding: 15px 30px !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: none !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* Add visual feedback for touch */
  .menu ul li a:active {
    background-color: #7B61FF !important;  /* Electric purple for active state */
    color: #FFFFFF !important;
  }

  header {
    flex-direction: row;
    padding: 0 20px;
  }

  .content-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Even smaller mobile screens */
@media screen and (max-width: 480px) {
  .logo {
    height: 42px;
  }

  .login-icon svg {
    width: 32.5px;
    height: 32.5px;
  }

  header {
    padding: 0 15px;
  }

  .menu ul li a {
    font-size: 18px !important;
    padding: 15px 25px !important;
  }

  .content-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Specific overrides */
@supports (-webkit-touch-callout: none) {
  @media screen and (max-width: 768px) {
    .menu {
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
    }
    
    .menu ul li a {
      border-bottom: none !important;
      border: none !important;
    }
  }
}

/* iPhone specific overrides */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 812px)
  and (-webkit-min-device-pixel-ratio: 2) {
  .menu {
    position: fixed !important;
    width: 100% !important;
    min-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  .menu ul li a {
    border-bottom: none !important;
    border: none !important;
  }
}

/* Section padding */
section {
  padding-left: 50px;
  padding-right: 50px;
}

@media (max-width: 768px) {
  section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* About Page Styles */
#about-intro {
  margin-bottom: 40px;
}

#about-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #2D3748;  /* Charcoal text */
}

.founders-container {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin: 30px 0;
}

.founder-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid #7B61FF;  /* Electric purple border */
}

.founder-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.founder-info {
  padding: 20px;
}

.founder-info h3 {
  margin-top: 0;
  color: #0172BF;  /* Primary blue */
  font-size: 22px;
}

.founder-info h4 {
  margin-top: 5px;
  color: #4A5568;  /* Lighter charcoal */
  font-size: 16px;
  font-weight: normal;
}

.founder-info p {
  margin-top: 15px;
  line-height: 1.5;
  color: #2D3748;  /* Charcoal text */
}

.values-list {
  list-style-type: none;
  padding: 0;
}

.values-list li {
  margin: 20px 0;
  padding-left: 25px;
  position: relative;
}

.values-list li::before {
  content: '�';
  color: #0172BF;  /* Primary blue */
  font-size: 24px;
  position: absolute;
  left: 0;
  top: -5px;
}

/* Services Page Styles */
#services-intro {
  margin-bottom: 40px;
}

#services-intro p {
  font-size: 18px;
  line-height: 1.6;
  color: #2D3748;  /* Charcoal text */
  max-width: 900px;
}

.service-item {
  display: flex;
  margin-bottom: 60px;
  gap: 40px;
  align-items: center;
}

.service-item.image-left {
  flex-direction: row;
}

.service-item.image-right {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1;
  max-width: 50%;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-info {
  flex: 1;
}

.service-info h3 {
  color: #0172BF;  /* Primary blue */
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 15px;
}

.service-info p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #2D3748;  /* Charcoal text */
}

.service-features {
  padding-left: 20px;
  margin-bottom: 25px;
}

.service-features li {
  margin-bottom: 10px;
  position: relative;
}

.service-cta {
  display: inline-block;
  background-color: #0172BF;  /* Primary blue */
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.75s ease;
  border: none;
  cursor: pointer;
}

.service-cta:hover {
  background-color: #042440;  /* Navy for hover */
}

#services-cta {
  text-align: center;
  background-color: #F0F8FF;  /* Ice blue background */
  padding: 40px;
  border-radius: 8px;
  margin-top: 40px;
  border: 2px solid #00FFB8;  /* Digital green border */
}

#services-cta h3 {
  color: #0172BF;  /* Primary blue */
  margin-top: 0;
}

.main-cta-button {
  display: inline-block;
  background-color: #00FFB8;  /* Digital green for secondary CTAs */
  color: #042440;  /* Navy text */
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
  transition: background-color 0.75s ease;
}

.main-cta-button:hover {
  background-color: #00E6A5;  /* Darker green */
}

@media (max-width: 900px) {
  .service-item {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .service-item,
  .service-item.image-left,
  .service-item.image-right {
    flex-direction: column;
    gap: 20px;
  }

  .service-image {
    max-width: 100%;
    margin-bottom: 20px;
  }

  #services-cta {
    padding: 30px 20px;
  }

  .founders-container {
    flex-direction: column;
    gap: 30px;
  }

  .founder-card {
    width: 100%;
  }

  .founder-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .service-info h3 {
    font-size: 22px;
  }

  .service-cta,
  .main-cta-button {
    display: block;
    text-align: center;
  }

  #about-intro p {
    font-size: 16px;
  }

  .founder-image {
    height: 250px;
  }

  .founder-info h3 {
    font-size: 20px;
  }

  .founder-info h4 {
    font-size: 15px;
  }
}

/* Logout button with Digital Green border */
.btn-logout {
    background-color: #ddd;
    color: #333;
    border: 2px solid #00FFB8; /* Digital Green border */
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-logout:hover {
    background-color: #ccc;
}

/* Fixed height dashboard cards */
.action-card {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    height: 200px; /* Fixed height for all cards */
}

.action-card h4 {
    margin-top: 0;
    color: #0172BF;
}

.action-card p {
    flex-grow: 1; /* This will push the button to the bottom */
}

.action-card .btn-container {
    margin-top: auto; /* Push to bottom */
}

/* Dashboard Improvements - Added by script */
.btn-logout {
    background-color: #ddd;
    color: #333;
    border: 2px solid #00FFB8; /* Digital Green border */
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-logout:hover {
    background-color: #ccc;
}

/* Fixed height dashboard cards */
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 200px; /* Fixed minimum height for all cards */
  position: relative;
  padding-bottom: 60px; /* Space for button */
}

.action-card h4 {
    margin-top: 0;
    color: #0172BF;
}

.action-card p {
    flex-grow: 1; /* This will push the button to the bottom */
}

.action-card .btn,
.action-card .btn-secondary,
.action-card .btn-logout,
.action-card a.btn {
    margin-top: auto; /* Push buttons to bottom */
}



.action-card a.btn,
.action-card .btn {
  position: absolute;
  bottom: 20px;
  display: inline-block;
  background-color: #0172BF;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.action-card .btn-logout {
  position: absolute;
  bottom: 20px;
  background-color: #ddd;
  color: #333;
  border: 2px solid #00FFB8; /* Digital Green border */
  padding: 8px 15px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}